fix: server-update is root only

This commit is contained in:
Strix 2023-10-22 17:47:15 +02:00
parent ab5e035bff
commit 6b2466dd7f
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -1,5 +1,11 @@
#!/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 -