forked from p15670423/monkey
Make sure all echo statements are prefixed with the log_message prefix
This commit is contained in:
parent
2aa7299103
commit
892096a3b3
|
@ -27,7 +27,7 @@ config_branch=${2:-"develop"}
|
||||||
config_url="https://raw.githubusercontent.com/guardicore/monkey/${config_branch}/deployment_scripts/config"
|
config_url="https://raw.githubusercontent.com/guardicore/monkey/${config_branch}/deployment_scripts/config"
|
||||||
|
|
||||||
if (! exists curl) && (! exists wget); then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -63,13 +63,13 @@ INFECTION_MONKEY_DIR="$monkey_home/monkey/infection_monkey"
|
||||||
MONKEY_BIN_DIR="$INFECTION_MONKEY_DIR/bin"
|
MONKEY_BIN_DIR="$INFECTION_MONKEY_DIR/bin"
|
||||||
|
|
||||||
if is_root; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
HAS_SUDO=$(has_sudo)
|
HAS_SUDO=$(has_sudo)
|
||||||
if [[ ! $HAS_SUDO ]]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ if [[ ! -d ${monkey_home} ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! exists git; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue