mirror of
https://github.com/AuxXxilium/arv-v-dsm.git
synced 2025-02-23 11:40:50 +07:00
Check for root
This commit is contained in:
parent
a732cebe90
commit
3553f11e16
@ -14,7 +14,7 @@ echo "Starting Virtual DSM for Docker v${VERSION}..."
|
||||
trap 'echo >&2 "Error status $? for: ${BASH_COMMAND} (line $LINENO/$BASH_LINENO)"' ERR
|
||||
|
||||
[ ! -f "/run/run.sh" ] && echo "ERROR: Script must run inside Docker container!" && exit 11
|
||||
[ "$(id -u)" -ne "$ROOTUID" ] && echo "ERROR: Script must be executed with root privileges." && exit 12
|
||||
[ "$(id -u)" -ne "0" ] && echo "ERROR: Script must be executed with root privileges." && exit 12
|
||||
|
||||
STORAGE="/storage"
|
||||
KERNEL=$(uname -r | cut -b 1)
|
||||
|
Loading…
Reference in New Issue
Block a user