diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-12-26 02:07:08 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-12-26 02:07:08 +0100 |
commit | c9cf7f6f289d5d23773d5e1a7ac9e4d8a197cac9 (patch) | |
tree | 7e69bb8411034e98d43ad6f067f8e2532be4c55e /bin/updater | |
parent | c3637bde6dfe6224f6508321ab739352982636a6 (diff) |
fix files directive and systemd unit directive
Diffstat (limited to 'bin/updater')
-rw-r--r-- | bin/updater/owncloud-news-updater.spec | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/bin/updater/owncloud-news-updater.spec b/bin/updater/owncloud-news-updater.spec index 52198efe5..72e95300e 100644 --- a/bin/updater/owncloud-news-updater.spec +++ b/bin/updater/owncloud-news-updater.spec @@ -31,14 +31,19 @@ mkdir -p /etc/owncloud/news install -D -m 0644 %{buildroot}/example-config.ini /etc/owncloud/news/updater.ini install -D -m 0644 %{buildroot}/systemd/owncloud-news-updater.service /etc/systemd/system/ +%pre +%service_add_pre %{name}.service + %post -systemctl enable owncloud-news-updater.service -systemctl start owncloud-news-updater.service +%service_add_post %{name}.service %preun -systemctl disable owncloud-news-updater.service -systemctl stop owncloud-news-updater.service +%service_del_preun %{name}.service + +%postun +%service_del_postun %{name}.service +%files %config %attr(0644,root,root) /etc/owncloud/news/updater.ini |