]>
us-delaporte.pagekite.me Git - matrix-cadbury.git/blob - service/install.sh
1 # Installs at system level for autostart
3 # Pass the path to an appropriate .env as $1
5 echo "Will copy config from '$1'"
7 INSTALL
=/etc
/matrix
-cadbury
9 ADD_SRV
=cadbury.service
10 DEST
=/etc
/systemd
/system
12 # Install as system package
13 cd /etc
; git clone https
://codeberg.org
/EdTheDev
/matrix
-cadbury.git
18 # Install as systemd service
21 cp $INSTALL/service
/$ADD_SRV $DEST/
22 ls -al $DEST | grep $ADD_SRV
24 systemctl daemon
-reload
25 systemctl
enable $ADD_SRV
26 systemctl status
$ADD_SRV