Merge pull request #95 from metadave/dp_check_for_root

bail out if not root
This commit is contained in:
Toyam Cox 2017-06-23 15:41:29 -04:00 committed by GitHub
commit b23f918d6f

View File

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