fix: server-update is root only
This commit is contained in:
parent
ab5e035bff
commit
6b2466dd7f
1 changed files with 6 additions and 0 deletions
|
@ -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 -
|
||||
|
|
Loading…
Reference in a new issue