dom0/update: exit with code 1 when stared without required privileges

This commit is contained in:
Marek Marczykowski 2013-02-22 21:21:31 +01:00
parent d12e532fc2
commit 26ecbb0e86

View File

@ -52,7 +52,7 @@ done
ID=$(id -ur)
if [ $ID != 0 -a -z "$GUI" -a -z "$CHECK_ONLY" ] ; then
echo "This script should be run as root (when used in console mode), use sudo." >&2
exit
exit 1
fi
if [ "$GUI" == "1" -a -n "$PKGS" ]; then