install/uninstall/update/restart scripts

This commit is contained in:
Joe Carstairs
2025-06-06 15:00:35 +01:00
committed by Joe Carstairs
parent 062195867a
commit 27c87d1df9
6 changed files with 41 additions and 1 deletions

11
update_and_restart.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
set -eux
cd ${LIB_DIR:-/lib}/joeac.net
sudo git fetch origin main
if [[ -z "$(git diff origin/main main)" ]]
then
sudo git pull
./restart.sh
fi