mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-08 22:57:55 +08:00
Update Containers/mastercontainer/start.sh
Co-authored-by: Simon L. <szaimen@e.mail.de> Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
parent
a9960c8d6a
commit
40c3a24b8b
1 changed files with 3 additions and 2 deletions
|
@ -20,8 +20,9 @@ case "${1}" in
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$(whoami)" != "root" ] || [ "$(id -u)" != "0" ] || [ "$(id -g)" != "0" ]; then
|
# Check if running as root user
|
||||||
print_red "Container does not run as root. Cannot continue."
|
if [ "$EUID" != "0" ]; then
|
||||||
|
print_red "Container does not run as root user. This is not supported."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue