install/uninstall/update/restart scripts

This commit is contained in:
Joe Carstairs
2025-06-06 15:00:35 +01:00
parent 062195867a
commit 80e5a30c3f
4 changed files with 40 additions and 0 deletions

13
install.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
set -eux
cd /lib
sudo git clone https://git.joeac.net/joeac/joeac.net.git
cd joeac.net
sudo chmod +x uninstall.sh update_and_restart.sh restart.sh
sudo echo << EOF >> /etc/cron.d/joeacnet
@reboot /lib/joeac.net/restart.sh
10 * * * * /lib/joeac.net/update_and_restart.sh
EOF
sudo systemctl restart crond.service