From 892096a3b310d4ab9aca7aa43a08985ada2c3465 Mon Sep 17 00:00:00 2001 From: Daniel Goldberg Date: Mon, 10 Feb 2020 13:50:32 +0200 Subject: [PATCH] Make sure all echo statements are prefixed with the log_message prefix --- deployment_scripts/deploy_linux.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deployment_scripts/deploy_linux.sh b/deployment_scripts/deploy_linux.sh index 88136d9a1..829f42bfe 100755 --- a/deployment_scripts/deploy_linux.sh +++ b/deployment_scripts/deploy_linux.sh @@ -27,7 +27,7 @@ config_branch=${2:-"develop"} config_url="https://raw.githubusercontent.com/guardicore/monkey/${config_branch}/deployment_scripts/config" if (! exists curl) && (! exists wget); then - echo 'Your system does not have curl or wget, exiting' + log_message 'Your system does not have curl or wget, exiting' exit 1 fi @@ -63,13 +63,13 @@ INFECTION_MONKEY_DIR="$monkey_home/monkey/infection_monkey" MONKEY_BIN_DIR="$INFECTION_MONKEY_DIR/bin" if is_root; then - echo "Please don't run this script as root" + log_message "Please don't run this script as root" exit 1 fi HAS_SUDO=$(has_sudo) if [[ ! $HAS_SUDO ]]; then - echo "You need root permissions for some of this script operations. Quiting." + log_message "You need root permissions for some of this script operations. Quiting." exit 1 fi @@ -78,7 +78,7 @@ if [[ ! -d ${monkey_home} ]]; then fi if ! exists git; then - echo "Please install git and re-run this script" + log_message "Please install git and re-run this script" exit 1 fi