diff options
-rwxr-xr-x | scripts/install/install-image | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install/install-image b/scripts/install/install-image index f1f64dc2..c7323fbf 100755 --- a/scripts/install/install-image +++ b/scripts/install/install-image @@ -242,8 +242,8 @@ else PASSWORD="" fi -if [ `whoami` != 'root' ] ; then - fail_exit 'This script must be run with root privileges.' +if [ $(id -u) != 0 ]; then + fail_exit "Image installation requires root privileges!" fi trap sig_handler INT KILL |