add install scripts and move secrets to uncommited file

This commit is contained in:
grizzly 2025-07-12 12:19:35 -04:00
parent 963907fcf4
commit 2fbec4da69
6 changed files with 60 additions and 0 deletions

19
install.sh Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/sh
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
echo $SCRIPT_DIR
cp lighthouse.service.default lighthouse.service
sed -i 's|WORKING_DIR|'"$SCRIPT_DIR"'|g' lighthouse.service
cp ./lighthouse.service /etc/systemd/system/.
cp ./lighthouse.timer /etc/systemd/system/.
systemctl daemon-reload
systemctl enable lighthouse.service
systemctl enable lighthouse.timer
systemctl start lighthouse.timer
echo "All done."