From 41bcbe3cd0f1f84eb812812f9b1921dd3562b09c Mon Sep 17 00:00:00 2001 From: Jonah Date: Thu, 18 Dec 2025 22:03:20 +0100 Subject: [PATCH] fix: stop banner service, not restart (#603) --- 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 }