From 06a3ba856df5abbe7df9477680f34cda9b64521a Mon Sep 17 00:00:00 2001 From: jon4hz Date: Tue, 16 Dec 2025 19:16:05 +0100 Subject: [PATCH] fix: stop banner service, not restart --- bin/admin/unlock-home.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/admin/unlock-home.sh b/bin/admin/unlock-home.sh index 1be7a4c..b9eca4e 100755 --- a/bin/admin/unlock-home.sh +++ b/bin/admin/unlock-home.sh @@ -7,16 +7,16 @@ CONFIGFILE=/etc/bastion/luks-config.sh update_banner() { if command -v systemctl >/dev/null 2>&1; then - if systemctl restart osh-seal-banner.service; then + if systemctl stop osh-seal-banner.service; then echo "SSH banner updated" else - echo "Warning: Could not restart osh-seal-banner service" + echo "Warning: Could not stop osh-seal-banner service" fi else - if service osh-seal-banner restart; then + if service osh-seal-banner stop; then echo "SSH banner updated" else - echo "Warning: Could not restart osh-seal-banner service" + echo "Warning: Could not stop osh-seal-banner service" fi fi }