diff --git a/Containers/mastercontainer/start.sh b/Containers/mastercontainer/start.sh index e54debc2..10c3befa 100644 --- a/Containers/mastercontainer/start.sh +++ b/Containers/mastercontainer/start.sh @@ -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