diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-12-04 12:19:08 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-12-04 12:19:08 +0100 |
commit | 8136e7a33d6405e76c2ff483a5a4e14a5d4f7e75 (patch) | |
tree | 10e5cb0d360da9d2cef2cfa68d4905df9e5b470b /bin/updater/Makefile | |
parent | 6d63da1d8397d8a36a88fa04338fe270f78d6635 (diff) |
fix makefile
Diffstat (limited to 'bin/updater/Makefile')
-rw-r--r-- | bin/updater/Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/bin/updater/Makefile b/bin/updater/Makefile index 7822c1a83..80f40509d 100644 --- a/bin/updater/Makefile +++ b/bin/updater/Makefile @@ -14,20 +14,23 @@ preinitsetup: clean cp $(CURDIR)/example-config.ini /etc/owncloud/news/updater.ini python3 setup.py install + install-systemd: preinitsetup cp $(CURDIR)/systemd/owncloud-news-updater.service /etc/systemd/system/ + @echo "" @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" + @echo " systemctl enable owncloud-news-updater.service" + @echo " systemctl start owncloud-news-updater.service" @echo "to run the updater on startup and:" - @echo " systemctl restart owncloud-news-updater" + @echo " systemctl restart owncloud-news-updater.service" @echo "to reload the changes if you change the config in /etc/owncloud/news/updater.ini" install-sysvinit: preinitsetup cp $(CURDIR)/sysvinit/owncloud-news-updater /etc/rc.d/ + @echo "" @echo "Installed files. Please edit your config in /etc/owncloud/news/updater.ini and run:" @echo " TBD" @echo " TBD" @@ -35,12 +38,14 @@ install-sysvinit: preinitsetup @echo " TBD" @echo "to reload the changes if you change the config in /etc/owncloud/news/updater.ini" -make uninstall: + +make uninstall: clean rm -rf /etc/owncloud/news/updater.ini rm -rf /etc/systemd/systemd/owncloud-news-updater.service # TBD uninstall sysvinit - python3 setup.py uninstall + pip3 uninstall owncloud_news_updater + @echo "" @echo "Uninstalled files. Please run: " @echo " systemctl disable owncloud-news-updater" @echo "to remove it from boot"
\ No newline at end of file |