2023-10-20 00:10:39 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-10-22 17:49:57 +02:00
|
|
|
if ! [ "$(id -u)" = "0" ]; then
|
2023-10-22 17:47:15 +02:00
|
|
|
echo "please perform as root, attempting to escalate privileges..."
|
|
|
|
exec sudo $(cat /proc/$$/cmdline | sed 's/\x00/ /g')
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-10-20 00:10:39 +02:00
|
|
|
if cd /etc/ixvd/secrets; then
|
|
|
|
git pull
|
|
|
|
cd -
|
|
|
|
fi
|
|
|
|
|
|
|
|
git pull
|
2023-11-06 18:12:41 +01:00
|
|
|
|
2023-12-06 22:16:46 +01:00
|
|
|
skelsum=$(find skel | sha256sum)
|
|
|
|
if ! [ "$(cat /etc/ixvd/skel-sum.txt)" = "$skelsum" ]; then
|
|
|
|
echo "WARNING: IXVD SERVER SKELETON CHANGED!"
|
2023-11-06 18:12:41 +01:00
|
|
|
echo "WARNING: Manual intervention is required."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-10-29 16:18:20 +01:00
|
|
|
./tools/server-setup.sh
|
|
|
|
./tools/server-docker-compose.sh build --pull
|
|
|
|
./tools/server-docker-compose.sh pull
|