]> apps.delaporte.us Git - matrix-cadbury.git/blob - service/install.sh
e0ea69eafe2c1125880da1704938d7ac9047cac6
[matrix-cadbury.git] / service / install.sh
1 # Installs at system level for autostart
2 # Requires sudo
3 # Pass the path to an appropriate .env as $1
4
5 cp $1 /etc/matrix-cadbury/.env
6 cd /etc; git clone https://codeberg.org/EdTheDev/matrix-cadbury.git
7
8 ADD_SRV=cadbury.service
9 DEST=/etc/systemd/system
10
11 mkdir -p $DEST
12 rm -f $DEST/$ADD_SRV
13 cp ../files/autostart/$ADD_SRV $DEST/
14 ls -al $DEST | grep $ADD_SRV
15
16 systemctl daemon-reload
17 systemctl enable $ADD_SRV
18 systemctl status $ADD_SRV