1 .PHONY
: all install finish
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 # automatically generate hmac secret keys for config.ini:
22 sed
-i
-e
'/^secret_key/s@$$@'"`head -c32 /dev/urandom | base64`"'@' -e
'/^hmac_key/s@x$$@'"`tr -dc '[:print:]' </dev/urandom|tr -d @ | head -c 32`"'@' /etc
/yt
/config.ini
24 @echo
'###################################################################'
25 @echo
'# installation finished! #'
26 @echo
'# edit /etc/yt/config.ini and /etc/yt/gunicorn-frontend-config.py #'
27 @echo
'# then run "sudo make finish" to start the server #'
28 @echo
'###################################################################'
31 systemctl enable subscriptions-frontend.service
32 systemctl enable subscriptions-update@websub.timer
33 systemctl enable subscriptions-update@pull.timer
34 systemctl start subscriptions-frontend.service
35 systemctl start subscriptions-update@websub.timer
36 systemctl start subscriptions-update@pull.timer
37 # one-shot to initialize db with guest subscriptions in the background:
38 systemctl start subscriptions-update@pull.service
&
40 @echo
'###################################################################'
41 @echo
'# the software is now running. #'
42 @echo
'# a user named "admin" with password "admin" has been created. #'
43 @echo
'# log in, then change the password by clicking on the username! #'
44 @echo
'###################################################################'