summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-12-04 10:43:55 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-12-04 10:43:55 +0100
commit34ae7015c9df70170fe2d7978861118bd76abfc3 (patch)
treec350c4ee632c579566016008ca0b7d718290bb22 /bin
parentbb563c7129f1382659e21c84f0f25a7848b31e41 (diff)
sysvinit section
Diffstat (limited to 'bin')
-rw-r--r--bin/updater/Makefile31
-rw-r--r--bin/updater/REAME.rst7
2 files changed, 26 insertions, 12 deletions
diff --git a/bin/updater/Makefile b/bin/updater/Makefile
index 5e16847e7..8fd6cde1c 100644
--- a/bin/updater/Makefile
+++ b/bin/updater/Makefile
@@ -2,26 +2,39 @@ all: install
install: install-systemd
-install-systemd:
+preinstall:
mkdir -p /etc/owncloud/news
- # install systemd unit file
+install-systemd: preinstall
cp $(CURDIR)/example-config.ini /etc/owncloud/news/updater.ini
- cp $(CURDIR)/systemd/owncloud-news.service /etc/systemd/system/
+ cp $(CURDIR)/systemd/owncloud-news-updater.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 " systemctl enable owncloud-news-updater"
+ @echo " systemctl start owncloud-news-updater"
@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"
+ @echo " systemctl restart owncloud-news-updater"
+ @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
+ 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"
+ @echo " TBD"
+ @echo "to run the updater on startup and:"
+ @echo " TBD"
+ @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/systemd/systemd/owncloud-news.service
+ rm -rf /etc/systemd/systemd/owncloud-news-updater.service
python3 setup.py uninstall
@echo "Uninstalled files. Please run: "
- @echo " systemctl disable owncloud-news"
+ @echo " systemctl disable owncloud-news-updater"
@echo "to remove it from boot" \ No newline at end of file
diff --git a/bin/updater/REAME.rst b/bin/updater/REAME.rst
index 454c7554f..56e6eca18 100644
--- a/bin/updater/REAME.rst
+++ b/bin/updater/REAME.rst
@@ -47,11 +47,12 @@ Then edit the config in **/etc/owncloud/news/updater.ini** with your details and
to test your settings. If everything worked out fine, enable the systemd unit with::
- sudo systemctl enable owncloud-news
- sudo systemctl start owncloud-news
+ sudo systemctl enable owncloud-news-updater.service
+ sudo systemctl start owncloud-news-updater.service
-Finally turn off the cron updates in the owncloud admin interface
+If you make changes to the **updater.ini** file don't forget to reload the service with::
+ sudo systemctl restart owncloud-news-updater.service
Self signed certificates
------------------------