From 30960779d7ff57cfd1587529acd9660a40304e48 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Sat, 21 Dec 2024 15:34:30 +0100 Subject: [PATCH] added shutdown as extra command --- shell_ntfy_remote_shutdown.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell_ntfy_remote_shutdown.sh b/shell_ntfy_remote_shutdown.sh index a9751a6..ff0f022 100644 --- a/shell_ntfy_remote_shutdown.sh +++ b/shell_ntfy_remote_shutdown.sh @@ -28,4 +28,5 @@ curl -s -X POST "$NTFY_URL" \ }" # Server herunterfahren -sshpass -p "$SSH_PASSWORD" ssh -o "StrictHostKeyChecking=no" "$SSH_USER@$SSH_HOST" "poweroff" \ No newline at end of file +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" \ No newline at end of file