From 557d097bd4c080b60036241b770107d94c9ce116 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 4 Dec 2014 10:48:52 +0100 Subject: add sysvinit section --- bin/updater/Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'bin/updater/Makefile') diff --git a/bin/updater/Makefile b/bin/updater/Makefile index 8fd6cde1c..193ce39e7 100644 --- a/bin/updater/Makefile +++ b/bin/updater/Makefile @@ -2,14 +2,14 @@ all: install install: install-systemd -preinstall: +preinit: mkdir -p /etc/owncloud/news - -install-systemd: preinstall cp $(CURDIR)/example-config.ini /etc/owncloud/news/updater.ini - cp $(CURDIR)/systemd/owncloud-news-updater.service /etc/systemd/system/ python3 setup.py install +install-systemd: preinit + cp $(CURDIR)/systemd/owncloud-news-updater.service /etc/systemd/system/ + @echo "Installed files. Please edit your config in /etc/owncloud/news/updater.ini and run:" @echo " systemctl enable owncloud-news-updater" @echo " systemctl start owncloud-news-updater" @@ -18,10 +18,8 @@ install-systemd: preinstall @echo "to reload the changes if you change the config in /etc/owncloud/news/updater.ini" -install-sysvinit: preinstall - cp $(CURDIR)/example-config.ini /etc/owncloud/news/updater.ini +install-sysvinit: preinit cp $(CURDIR)/sysvinit/owncloud-news-updater /etc/rc.d/ - python3 setup.py install @echo "Installed files. Please edit your config in /etc/owncloud/news/updater.ini and run:" @echo " TBD" @@ -31,8 +29,9 @@ install-sysvinit: preinstall @echo "to reload the changes if you change the config in /etc/owncloud/news/updater.ini" make uninstall: - rm -rf /etc/owncloud/news + rm -rf /etc/owncloud/news/updater.ini rm -rf /etc/systemd/systemd/owncloud-news-updater.service + # TBD uninstall sysvinit python3 setup.py uninstall @echo "Uninstalled files. Please run: " -- cgit v1.2.3