From b964aca07178f1effb1da4f5083e8e3fbf42a6e2 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 4 Dec 2014 17:17:20 +0100 Subject: add update command --- bin/updater/Makefile | 13 ++++++++----- bin/updater/README.rst | 27 +++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 5 deletions(-) (limited to 'bin') 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 ---------------------------- -- cgit v1.2.3