neb/tools/server-update.sh
2023-10-22 17:48:12 +02:00

16 lines
No EOL
301 B
Bash
Executable file

#!/bin/sh
if ! [ "$UID" = "0" ]; then
echo "please perform as root, attempting to escalate privileges..."
exec sudo $(cat /proc/$$/cmdline | sed 's/\x00/ /g')
exit 1
fi
if cd /etc/ixvd/secrets; then
git pull
cd -
fi
./tools/server-remove-skel.sh
git pull
./tools/server-setup.sh