Give a more descriptive error message if deploy_linux.sh cannot use sudo
This commit is contained in:
parent
6f0fffee07
commit
0238354bea
|
@ -68,7 +68,8 @@ INFECTION_MONKEY_DIR="$monkey_home/monkey/infection_monkey"
|
||||||
MONKEY_BIN_DIR="$INFECTION_MONKEY_DIR/bin"
|
MONKEY_BIN_DIR="$INFECTION_MONKEY_DIR/bin"
|
||||||
|
|
||||||
if ! has_sudo; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue