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:
Zoey
2023-05-09 11:17:39 +02:00
committed by GitHub
parent a9960c8d6a
commit 40c3a24b8b

View File

@@ -20,8 +20,9 @@ case "${1}" in
esac
}
if [ "$(whoami)" != "root" ] || [ "$(id -u)" != "0" ] || [ "$(id -g)" != "0" ]; then
print_red "Container does not run as root. Cannot continue."
# Check if running as root user
if [ "$EUID" != "0" ]; then
print_red "Container does not run as root user. This is not supported."
exit 1
fi