diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-12-04 10:48:52 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-12-04 10:48:52 +0100 |
commit | 557d097bd4c080b60036241b770107d94c9ce116 (patch) | |
tree | 69a431c2fcdc17b5d416358b2b7495e3d70cd45c /bin | |
parent | 34ae7015c9df70170fe2d7978861118bd76abfc3 (diff) |
add sysvinit section
Diffstat (limited to 'bin')
-rw-r--r-- | bin/updater/Makefile | 15 | ||||
-rw-r--r-- | bin/updater/REAME.rst | 6 |
2 files changed, 13 insertions, 8 deletions
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: " diff --git a/bin/updater/REAME.rst b/bin/updater/REAME.rst index 56e6eca18..bc71b3a06 100644 --- a/bin/updater/REAME.rst +++ b/bin/updater/REAME.rst @@ -54,6 +54,12 @@ If you make changes to the **updater.ini** file don't forget to reload the servi sudo systemctl restart owncloud-news-updater.service + +Installation: SysVinit +---------------------- + +TBD + Self signed certificates ------------------------ |