update example
This commit is contained in:
parent
d4521934ce
commit
5c8cecdc92
1 changed files with 3 additions and 2 deletions
|
@ -11,10 +11,11 @@ fi
|
||||||
|
|
||||||
echo "Aquired session with id $session_id"
|
echo "Aquired session with id $session_id"
|
||||||
|
|
||||||
# Do your backup here and wait for the PC to come online using a ping-loop for example
|
# 1. Wait for the PC to come online (using a ping-loop for example)
|
||||||
|
# 2. Do your backup here
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
# Delete the session after we are done using it
|
# End the session after we are done using it
|
||||||
curl -s -X DELETE http://localhost:3000/api/session/$session_id
|
curl -s -X DELETE http://localhost:3000/api/session/$session_id
|
||||||
exit_code=$?
|
exit_code=$?
|
||||||
if [ $exit_code != 0 ]; then
|
if [ $exit_code != 0 ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue