changes to shutdown behavior
This commit is contained in:
parent
9e748edb78
commit
d47052f216
1 changed files with 3 additions and 4 deletions
7
shcloud
7
shcloud
|
@ -91,10 +91,9 @@ then
|
|||
then
|
||||
#Server stoppen
|
||||
echo "Stoppe server..."
|
||||
ssh -f -i /root/.ssh/shcloud -l root -o "StrictHostKeyChecking=no" shcloud.eu 'su -c "cd /gameserver/'$GAME' && /gameserver/'$GAME'/'$GAME' stop" gameserver'
|
||||
sleep 15
|
||||
echo "Fahre server runter..."
|
||||
ssh -f -i /root/.ssh/shcloud -l root -o "StrictHostKeyChecking=no" shcloud.eu 'shutdown now'
|
||||
ssh shcloud.eu 'su -c "cd /gameserver/'$GAME' && /gameserver/'$GAME'/'$GAME' stop" gameserver'
|
||||
echo "Fahre Server herunter..."
|
||||
ssh shcloud.eu 'shutdown now'
|
||||
sleep 5
|
||||
#Volume entfernen
|
||||
volume_detach=$(curl -X POST -H "Authorization: Bearer $API_TOKEN" 'https://api.hetzner.cloud/v1/volumes/'$VOLUME_ID'/actions/detach' -s)
|
||||
|
|
Loading…
Reference in a new issue