2023-10-20 00:10:39 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-10-22 17:47:15 +02:00
|
|
|
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
|
|
|
|
|
2023-10-20 00:10:39 +02:00
|
|
|
if cd /etc/ixvd/secrets; then
|
|
|
|
git pull
|
|
|
|
cd -
|
|
|
|
fi
|
|
|
|
|
|
|
|
sh tools/remove-skel.sh
|
|
|
|
git pull
|
|
|
|
sh tools/setup-server.sh
|