[Bug 1183168] postgresql13: uninstall fails due to valid script expansion
https://bugzilla.suse.com/show_bug.cgi?id=1183168
https://bugzilla.suse.com/show_bug.cgi?id=1183168#c6
Franck Bui
I finally got around to look into this again. The problem with %stop_on_removal was that it stops AND disables the service, but I need to split these two actions. Stop has to be done in the postgresqlXX-server packages containing the actual binaries, but disable has to happen in the postgresql-server (noarch) package that contains the service file.
I think I can just directly call "systemctl stop" instead of using a here, because everything else that the macro does is already being handled by my own scripting.
Any objections, Franck?
Nope, in such (extreme) cases it seems better that you use your own recipe rather than trying to reuse and twist the macros until it fits your needs.
BTW, I am also using %_restart_on_update in the postgresqlXX-server packages, which still exists, but probably also isn't meant to be used directly. Are there plans to remove that one as well?
I don't think %_restart_on_update will be removed but it's also not meant to be used by packages. Its content or its behavior may change in the future. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com