This commit is contained in:
Bernhard Posselt 2014-12-04 17:17:20 +01:00
Родитель 9adcd28ab3
Коммит b964aca071
2 изменённых файлов: 35 добавлений и 5 удалений

Просмотреть файл

@ -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 ""

Просмотреть файл

@ -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
----------------------------