18 lines
No EOL
389 B
Bash
Executable file
18 lines
No EOL
389 B
Bash
Executable file
#!/bin/sh
|
|
|
|
if ! [ "$(id -u)" = "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
|
|
./tools/server-docker-compose.sh build --pull
|
|
./tools/server-docker-compose.sh pull |