LawsHosting
Verified User
Instead of relying on the message system, I decided to use a 3rd-party site to send me alerts of successful/failed reseller backups..... However, the following fails:
all_backup_post.sh (755 diradmin:diradmin)
However, nothing triggers....... I tried uppercase $OWNER & $SUCCESS too, still nothing.
Am I stupid or what?
all_backup_post.sh (755 diradmin:diradmin)
Code:
if [ "$owner" == "blah" ] && [ "$success" -eq 1 ]; then
curl "url/success"
echo "[debug] lawshost1: success" >> /tmp/lawshost1.txt
elif [ "$owner" == "blah" ] && [ "$success" -eq 0 ]; then
curl "url/fail"
echo "[debug] lawshost1: fail" >> /tmp/lawshost1.txt
fi
Am I stupid or what?