1 .PHONY
: all install config
4 @echo
'issue "sudo make install" to install subscriptionfeed'
9 install -Dt
/etc
/yt config
/config.ini config
/gunicorn-frontend-config.py
10 install -Dt
/etc
/systemd
/system config
/subscriptions-frontend.service
11 install -Dt
/etc
/systemd
/system config
/subscriptions-port80.service
12 install -Dt
/etc
/systemd
/system config
/subscriptions-update@.service
13 install -Dt
/etc
/systemd
/system config
/subscriptions-update@.timer
14 systemctl daemon-reload
15 python3
-m venv
/opt
/yt
/venv
16 /opt
/yt
/venv
/bin
/pip
install -r config
/requirements.txt
17 sqlite3
/opt
/yt
/subscriptions.sqlite
< config
/setup.sql
18 sqlite3
/opt
/yt
/subscriptions.sqlite
< config
/guest.sql
19 # admin user with default password -- must be changed on first login!
20 .
/config
/create-admin.sh
/opt
/yt
/subscriptions.sqlite
21 @echo
'###################################################################'
22 @echo
'# installation finished! #'
23 @echo
'# edit /etc/yt/config.ini and /etc/yt/gunicorn-frontend-config.py #'
24 @echo
'# then run "sudo make finish" to start the server #'
25 @echo
'###################################################################'
28 systemctl enable subscriptions-frontend.service
29 systemctl enable subscriptions-update@websub.timer
30 systemctl enable subscriptions-update@pull.timer
31 systemctl start subscriptions-frontend.service
32 # one-shot to initialize db with guest subscriptions in the background:
33 systemctl start subscriptions-update@pull.service
&