From 44a9ed726cb3983949a70d26415ed2370793f825 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ladislav=20Slez=C3=A1k?= Date: Fri, 14 Jun 2024 15:34:23 +0200 Subject: [PATCH] Fixed RPM scripts - Restart the Agama webserver after upgrading the package - Add the systemd handling also to the Ruby service package --- rust/package/agama.spec | 2 +- service/package/gem2rpm.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/rust/package/agama.spec b/rust/package/agama.spec index 547e9787d3..5c0ad022a2 100644 --- a/rust/package/agama.spec +++ b/rust/package/agama.spec @@ -113,7 +113,7 @@ echo $PATH %service_del_preun agama-web-server.service %postun -%service_del_preun agama-web-server.service +%service_del_postun_with_restart agama-web-server.service %files %{_bindir}/agama-dbus-server diff --git a/service/package/gem2rpm.yml b/service/package/gem2rpm.yml index 36f3036ccb..7fab722649 100644 --- a/service/package/gem2rpm.yml +++ b/service/package/gem2rpm.yml @@ -84,3 +84,8 @@ %{_datadir}/agama/conf.d\n %dir /usr/share/YaST2\n /usr/share/YaST2/locale\n" +:scripts: + :pre: "%service_add_pre agama.service" + :post: "%service_add_post agama.service" + :preun: "%service_del_preun agama.service" + :postun: "%service_del_postun_with_restart agama.service"