blob: 8fd6cde1cdccb6f51b2cdede93ea298ef80f33f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
all: install
install: install-systemd
preinstall:
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
@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"
@echo "to run the updater on startup and:"
@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-updater.service
python3 setup.py uninstall
@echo "Uninstalled files. Please run: "
@echo " systemctl disable owncloud-news-updater"
@echo "to remove it from boot"
|