fix description

This commit is contained in:
Robert Habermann
2020-01-05 16:11:34 +00:00
parent da4171dfbc
commit c4533dfc22

View File

@@ -1,8 +1,10 @@
#!/bin/bash #!/bin/bash
if [ $# -eq 0 ]; then # command info
echo "script to enable/disabe and send notifications" if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
echo "blitz.notify.sh [on|off] - OR" echo "script to enable/disable or send notifications"
echo "blitz.notify.sh on"
echo "blitz.notify.sh off"
echo "blitz.notify.sh send \"Message to be send via configured method\"" echo "blitz.notify.sh send \"Message to be send via configured method\""
exit 1 exit 1
fi fi
@@ -132,7 +134,7 @@ if [ "$1" = "send" ]; then
/home/admin/python3-env-lnd/bin/python3 /home/admin/XXsendNotification.py ext ${notifyExtCmd} "$2" /home/admin/python3-env-lnd/bin/python3 /home/admin/XXsendNotification.py ext ${notifyExtCmd} "$2"
elif [ "${notifyMethod}" = "mail" ]; then elif [ "${notifyMethod}" = "mail" ]; then
if [ "${notifyMailEncrypt}" = "on" ]; then if [ "${notifyMailEncrypt}" = "on" ]; then
/home/admin/python3-env-lnd/bin/python3 /home/admin/XXsendNotification.py mail --cert rhab.pem --encrypt ${notifyMailTo} "$2" /home/admin/python3-env-lnd/bin/python3 /home/admin/XXsendNotification.py mail --cert ${notifyMailToCert} --encrypt ${notifyMailTo} "$2"
else else
/home/admin/python3-env-lnd/bin/python3 /home/admin/XXsendNotification.py mail ${notifyMailTo} "$2" /home/admin/python3-env-lnd/bin/python3 /home/admin/XXsendNotification.py mail ${notifyMailTo} "$2"
fi fi
@@ -145,6 +147,6 @@ if [ "$1" = "send" ]; then
exit 0 exit 0
fi fi
echo "FAIL - Unknown Paramter $1" echo "FAIL - Unknown Parameter $1"
exit 1 exit 1