install/uninstall/update/restart scripts
This commit is contained in:
11
update_and_restart.sh
Executable file
11
update_and_restart.sh
Executable 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
|
||||
Reference in New Issue
Block a user