diff --git a/scan_chk.sh b/scan_chk.sh index 025820b..591ba57 100644 --- a/scan_chk.sh +++ b/scan_chk.sh @@ -1,5 +1,8 @@ #!/bin/bash +# uncomment when use script from cron +PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin + # variables LOGFILE="$(hostname)_chkrootkit-$(date +'%Y-%m-%d').txt"; GOTIFY_MESSAGE="Scan init: **"`date +"%d/%m/%Y %H:%M:%S"`"** \r" diff --git a/scan_clam.sh b/scan_clam.sh index d9d5dac..470dd78 100644 --- a/scan_clam.sh +++ b/scan_clam.sh @@ -1,5 +1,8 @@ #!/bin/bash +# uncomment when use script from cron +PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin + # variables LOGFILE="$(hostname)_clamav-$(date +'%Y-%m-%d').log"; GOTIFY_MESSAGE="Scan init: **"`date +"%d/%m/%Y %H:%M:%S"`"** \r" diff --git a/scan_rkh.sh b/scan_rkh.sh index 22055f0..e463b34 100644 --- a/scan_rkh.sh +++ b/scan_rkh.sh @@ -1,5 +1,8 @@ #!/bin/bash +# uncomment when use script from cron +PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin + # variables LOGFILE="$(hostname)_rkhunter-$(date +'%Y-%m-%d').log"; GOTIFY_MESSAGE="Scan init: **"`date +"%d/%m/%Y %H:%M:%S"`"** \r" diff --git a/updates_notifier.sh b/updates_notifier.sh index 90d4f5a..9aafc0d 100644 --- a/updates_notifier.sh +++ b/updates_notifier.sh @@ -1,5 +1,8 @@ #!/bin/bash +# uncomment when use script from cron +PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin + #verify run as root or sudo if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" diff --git a/utils/gotifypush.sh b/utils/gotifypush.sh index 53d4c61..ed9548c 100644 --- a/utils/gotifypush.sh +++ b/utils/gotifypush.sh @@ -2,6 +2,9 @@ #Use ./gotifypush <message> <priority> <token> <clickurl> +# uncomment when use script from cron +PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin + # Gotify notification parameters TITLE=$1 MESSAGE=$2 diff --git a/utils/logger.sh b/utils/logger.sh index 7634970..f0dfa11 100644 --- a/utils/logger.sh +++ b/utils/logger.sh @@ -2,6 +2,9 @@ #Use ./logger.sh <logfile> <relativepath> +# uncomment when use script from cron +PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin + # variables REMOTE_PATH="$ES7_LOGS_PATH$2" PUBLIC_LOG_URL="$ES7_LOGS_URL/$2"