diff options
Diffstat (limited to 'bin/updater/Makefile')
-rw-r--r-- | bin/updater/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/bin/updater/Makefile b/bin/updater/Makefile new file mode 100644 index 000000000..5e16847e7 --- /dev/null +++ b/bin/updater/Makefile @@ -0,0 +1,27 @@ +all: install + +install: install-systemd + +install-systemd: + mkdir -p /etc/owncloud/news + + # install systemd unit file + cp $(CURDIR)/example-config.ini /etc/owncloud/news/updater.ini + cp $(CURDIR)/systemd/owncloud-news.service /etc/systemd/system/ + python3 setup.py install + + @echo "Installed files. Please edit your config in /etc/owncloud/news/updater.ini and run:" + @echo " systemctl enable owncloud-news" + @echo " systemctl start owncloud-news" + @echo "to run the updater on startup and:" + @echo " systemctl restart owncloud-news" + @echo "if you change the config in /etc/owncloud/news/updater.ini" + +make uninstall: + rm -rf /etc/owncloud/news + rm -rf /etc/systemd/systemd/owncloud-news.service + python3 setup.py uninstall + + @echo "Uninstalled files. Please run: " + @echo " systemctl disable owncloud-news" + @echo "to remove it from boot"
\ No newline at end of file |