summaryrefslogtreecommitdiffstats
path: root/bin/updater/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'bin/updater/Makefile')
-rw-r--r--bin/updater/Makefile15
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