From: Edward Delaporte Date: Tue, 7 Apr 2026 03:53:15 +0000 (-0500) Subject: Fixup X-Git-Url: https://apps.delaporte.us/gitweb/matrix-cadbury.git/commitdiff_plain/ac6699ee2d438451b7ab3d4d55fe2032fccf3110?ds=sidebyside;hp=a523a1ff4063ac410eae72aa4df6e05bfcb4ef58 Fixup --- diff --git a/service/install.sh b/service/install.sh index e0ea69e..5b2c002 100755 --- a/service/install.sh +++ b/service/install.sh @@ -2,15 +2,23 @@ # Requires sudo # Pass the path to an appropriate .env as $1 -cp $1 /etc/matrix-cadbury/.env -cd /etc; git clone https://codeberg.org/EdTheDev/matrix-cadbury.git +echo "Will copy config from '$1'" + +INSTALL=/etc/matrix-cadbury ADD_SRV=cadbury.service DEST=/etc/systemd/system +# Install as system package +cd /etc; git clone https://codeberg.org/EdTheDev/matrix-cadbury.git + +# Add initial config +cp $1 $INSTALL/.env + +# Install as systemd service mkdir -p $DEST rm -f $DEST/$ADD_SRV -cp ../files/autostart/$ADD_SRV $DEST/ +cp $INSTALL/service/$ADD_SRV $DEST/ ls -al $DEST | grep $ADD_SRV systemctl daemon-reload