bail out if not root

This commit is contained in:
Dave Parfitt 2017-01-23 09:50:20 -05:00
parent 57c6107be3
commit 737c00b262

View File

@ -1382,6 +1382,12 @@ if [ ! -x /bin/dialog ]; then
echo "ERROR: missing dialog command, exiting..."
exit 1
fi
if [ "$(id -u)" != "0" ]; then
echo "void-installer must run as root" 1>&2
exit 1
fi
#
# main()
#