updated scripts
This commit is contained in:
1 parent
2326f1fbbc
commit
41b55f96c1
118 files changed
+8245
-627
No files matched your search
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
/usr/bin/python3 /opt/snapraid-runner/snapraid-runner.py -c /opt/snapraid-runner/snapraid-runner.conf
|
||||
STATE=$?
|
||||
|
||||
if [ $STATE -le 2 ]; then
|
||||
# Success or Warning (still successful sync)
|
||||
/usr/bin/curl -fsS "https://uptime.liphlink.xyz/api/push/a73pMB3WnL?status=up&msg=ExitCode_$STATE"
|
||||
else
|
||||
# Hard Failure
|
||||
/usr/bin/curl -fsS "https://uptime.liphlink.xyz/api/push/a73pMB3WnL?status=down&msg=Failed_Code_$STATE"
|
||||
fi
|
||||
Reference in new issue
Block a user