mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update rebuild.sh
This commit is contained in:
parent
7abee45433
commit
e88b889edb
@ -43,7 +43,7 @@ response=$(curl -s -X POST \
|
||||
-d "{\"type\":\"snapshot\",\"name\":\"${version} demo snapshot\"}" \
|
||||
"https://api.digitalocean.com/v2/droplets/$droplet_id/actions")
|
||||
|
||||
snapshot_id=$(echo "$response" | jq -r '.action.resource_id')
|
||||
snapshot_id=$(echo "$response" | jq -r '.action.id')
|
||||
|
||||
if [ "$snapshot_id" != "null" ] && [ -n "$snapshot_id" ]; then
|
||||
echo "Snapshot ID: $snapshot_id"
|
||||
|
Loading…
Reference in New Issue
Block a user