install/uninstall/update/restart scripts
This commit is contained in:
12
update_and_restart.sh
Normal file
12
update_and_restart.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eux
|
||||
|
||||
cd /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