blob: 586ceb297dccaea26df75750d052a45eb6f1e763 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
all: install
install: install-systemd
clean:
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
cp $(CURDIR)/example-config.ini /etc/owncloud/news/updater.ini
python3 setup.py install --install-scripts=/usr/bin
install-systemd: preinitsetup
cp $(CURDIR)/systemd/owncloud-news-updater.service /etc/systemd/system/
@echo ""
@echo "Installed files. Please edit your config in /etc/owncloud/news/updater.ini and run:"
@echo " systemctl enable owncloud-news-updater.service"
@echo " systemctl start owncloud-news-updater.service"
@echo "to run the updater on startup and:"
@echo " systemctl restart owncloud-news-updater.service"
@echo "to reload the changes if you change the config in /etc/owncloud/news/updater.ini"
install-sysvinit: preinitsetup
cp $(CURDIR)/sysvinit/owncloud-news-updater /etc/init.d/
@echo ""
@echo "Installed files. Please edit your config in /etc/owncloud/news/updater.ini and run:"
@echo " sudo update-rc.d owncloud-news-updater defaults"
@echo " sudo /etc/init.d/owncloud-news-updater start"
@echo "to run the updater on startup and:"
@echo " sudo /etc/init.d/owncloud-news-updater restart"
@echo "to reload the changes if you change the config in /etc/owncloud/news/updater.ini"
make uninstall: clean
rm -rf /etc/owncloud/news/updater.ini
rm -rf /etc/systemd/systemd/owncloud-news-updater.service
rm -rf /etc/init.d/owncloud-news-updater
pip3 uninstall owncloud_news_updater
@echo ""
@echo "Uninstalled files. Please run: "
@echo " systemctl disable owncloud-news-updater"
@echo "to remove it from boot"
|