Fixed syntax error

This commit is contained in:
2023-01-11 10:49:00 -05:00
parent cc00f61fa3
commit 575374840b

View File

@@ -1,14 +1,14 @@
#!/bin/bash #!/bin/bash
errorExit() errorExit()
{ {
curl "http://192.168.0.199:8090/message?token=AZNWb40wR8in89U" -F "title=Photo Backup Error on jerickserver" -F "message=Error$ curl "http://192.168.0.199:8090/message?token=AZNWb40wR8in89U" -F "title=Photo Backup Error on jerickserver" -F "message=Error on PVE Config Backup Job!!" -F "priority=5"
exit 1 exit 1
} }
rclone copy /mnt/pve/NFSFolder/AppData/Immich jerickserver:jerickserver rclone copy /mnt/pve/NFSFolder/AppData/Immich jerickserver:jerickserver
if [ $? -eq 0 ] if [ $? -eq 0 ]
then then
curl "http://192.168.0.199:8090/message?token=AZNWb40wR8in89U" -F "title=Photo Backup Finished on jerickserver" -F "message=Ba$ curl "http://192.168.0.199:8090/message?token=AZNWb40wR8in89U" -F "title=Photo Backup Finished on jerickserver" -F "message=Backup Job has finished" -F "priority=5"
else else
errorExit errorExit
fi fi