Localized sending scripts added
Localized sending scripts added
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
#!/bin/bash
|
||||
APP_PATH=/etc/cai-watchdog
|
||||
APP_PATH=$(dirname "$0") # relative
|
||||
APP_PATH=$(cd "$APP_PATH" && pwd) # absolutized and normalized
|
||||
if [[ -z "$APP_PATH" ]] ; then
|
||||
# error; for some reason, the path is not accessible
|
||||
# to the script (e.g. permissions re-evaled after suid)
|
||||
APP_PATH="/etc/cai-watchdog"
|
||||
fi
|
||||
|
||||
source ${APP_PATH}/inc-icons
|
||||
${APP_PATH}/send-telegram "${ICON_INFO} ATTENTION! Watchdog is stopped!"
|
||||
|
||||
Reference in New Issue
Block a user