mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-06 13:56:45 +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
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue