added shutdown as extra command
This commit is contained in:
@@ -28,4 +28,5 @@ curl -s -X POST "$NTFY_URL" \
|
|||||||
}"
|
}"
|
||||||
|
|
||||||
# Server herunterfahren
|
# Server herunterfahren
|
||||||
sshpass -p "$SSH_PASSWORD" ssh -o "StrictHostKeyChecking=no" "$SSH_USER@$SSH_HOST" "poweroff"
|
sshpass -p "$SSH_PASSWORD" ssh -o "StrictHostKeyChecking=no" "$SSH_USER@$SSH_HOST" "poweroff"
|
||||||
|
sshpass -p "$SSH_PASSWORD" ssh -o "StrictHostKeyChecking=no" "$SSH_USER@$SSH_HOST" "shutdown"
|
||||||
Reference in New Issue
Block a user