Initial version of instance control and snapshot triggering
This commit is contained in:
10
all-apps/instance-control-webhooks/hooks/restic-snapshot-status.sh
Executable file
10
all-apps/instance-control-webhooks/hooks/restic-snapshot-status.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# TODO read 'version' arg from request and make sure it
|
||||
# matches the version of this script
|
||||
|
||||
status=`cat /tmp/restic/snapshot_status_$HOOK_request_id`
|
||||
|
||||
echo "{\"status\":\"$status\"}"
|
||||
Reference in New Issue
Block a user