fix: stop banner service, not restart (#603)

pull/605/head
Jonah 2 months ago committed by GitHub
parent 7457f3db0d
commit 41bcbe3cd0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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
}

Loading…
Cancel
Save