blob: 5e16847e77993479c3baa1d663a3bceaaad295e6 (
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
|
all: install
install: install-systemd
install-systemd:
mkdir -p /etc/owncloud/news
# install systemd unit file
cp $(CURDIR)/example-config.ini /etc/owncloud/news/updater.ini
cp $(CURDIR)/systemd/owncloud-news.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"
@echo " systemctl start owncloud-news"
@echo "to run the updater on startup and:"
@echo " systemctl restart owncloud-news"
@echo "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.service
python3 setup.py uninstall
@echo "Uninstalled files. Please run: "
@echo " systemctl disable owncloud-news"
@echo "to remove it from boot"
|