Give a more descriptive error message if deploy_linux.sh cannot use sudo

This commit is contained in:
Mike Salvatore 2020-12-08 10:23:53 -05:00
parent 6f0fffee07
commit 0238354bea
1 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,8 @@ INFECTION_MONKEY_DIR="$monkey_home/monkey/infection_monkey"
MONKEY_BIN_DIR="$INFECTION_MONKEY_DIR/bin"
if ! has_sudo; then
log_message "You need root permissions for some of this script operations. Quiting."
log_message "You need root permissions for some of this script operations. \
Run \`sudo -v\`, enter your password, and then re-run this script."
exit 1
fi