From 0238354bea6e06d91038b19d0cc56d1106ad3006 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 8 Dec 2020 10:23:53 -0500 Subject: [PATCH] Give a more descriptive error message if deploy_linux.sh cannot use sudo --- deployment_scripts/deploy_linux.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment_scripts/deploy_linux.sh b/deployment_scripts/deploy_linux.sh index cea8d70a8..f11e126da 100755 --- a/deployment_scripts/deploy_linux.sh +++ b/deployment_scripts/deploy_linux.sh @@ -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