Skip to content

Commit

Permalink
Fixed RPM scripts
Browse files Browse the repository at this point in the history
- Restart the Agama webserver after upgrading the package
- Add the systemd handling also to the Ruby service package
  • Loading branch information
lslezak committed Jun 14, 2024
1 parent 9cdb5b9 commit 44a9ed7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rust/package/agama.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions service/package/gem2rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 44a9ed7

Please sign in to comment.