diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-12-04 17:17:20 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-12-04 17:17:20 +0100 |
commit | b964aca07178f1effb1da4f5083e8e3fbf42a6e2 (patch) | |
tree | 14719bf9cef928b383b360cd9f5845a87c269a8d /bin | |
parent | 9adcd28ab396a0c0f09965fc918c06ca92fad16a (diff) |
add update command
Diffstat (limited to 'bin')
-rw-r--r-- | bin/updater/Makefile | 13 | ||||
-rw-r--r-- | bin/updater/README.rst | 27 |
2 files changed, 35 insertions, 5 deletions
diff --git a/bin/updater/Makefile b/bin/updater/Makefile index fc2c697fc..f3cf14a2c 100644 --- a/bin/updater/Makefile +++ b/bin/updater/Makefile @@ -3,11 +3,14 @@ all: install install: install-systemd clean: - sudo rm -rf dist - sudo rm -rf MANIFEST - sudo rm -rf build - sudo rm -rf owncloud_news_updater.egg-info + rm -rf dist + rm -rf MANIFEST + rm -rf build + rm -rf owncloud_news_updater.egg-info +update: clean + pip3 uninstall owncloud_news_updater + python3 setup.py install preinitsetup: clean mkdir -p /etc/owncloud/news @@ -42,7 +45,7 @@ install-sysvinit: preinitsetup make uninstall: clean rm -rf /etc/owncloud/news/updater.ini rm -rf /etc/systemd/systemd/owncloud-news-updater.service - # TBD uninstall sysvinit + rm -rf /etc/init.d/owncloud-news-updater pip3 uninstall owncloud_news_updater @echo "" diff --git a/bin/updater/README.rst b/bin/updater/README.rst index 180512f5b..9b20927f0 100644 --- a/bin/updater/README.rst +++ b/bin/updater/README.rst @@ -14,6 +14,33 @@ to:: useCronUpdates = false +Then install the following packages (my vary depending on your distribution): + +* python3-pip +* python3-setuptools +* make + +If you are **on Debian 7** you want to create a symlink for pip to make use of the makefile:: + + sudo ln -s /usr/bin/pip-3.2 /usr/bin/pip3 + +Updating +-------- + +If you have installed the updater on your system you can update it by running + + make update + +The **init and config files won't be updated** and you need to update them manually in case there is a change. + +Finally reload the systemd service:: + + sudo systemctl restart owncloud-news-updater + +or SysVinit script:: + + sudo /etc/init.d/owncloud-news-updater restart + Installation: No init system ---------------------------- |