From 4ddb1fdac09c20d132935f668b395b918e9846a4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Mon, 24 Oct 2022 09:03:08 +0000 Subject: [PATCH] Core Update 172: Ship and restart OpenSSH MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Peter Müller --- config/rootfiles/core/172/filelists/openssh | 1 + config/rootfiles/core/172/update.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 120000 config/rootfiles/core/172/filelists/openssh diff --git a/config/rootfiles/core/172/filelists/openssh b/config/rootfiles/core/172/filelists/openssh new file mode 120000 index 0000000000..d8c77fd8e7 --- /dev/null +++ b/config/rootfiles/core/172/filelists/openssh @@ -0,0 +1 @@ +../../../common/openssh \ No newline at end of file diff --git a/config/rootfiles/core/172/update.sh b/config/rootfiles/core/172/update.sh index 89c34ffd7a..cd1cda5e2c 100644 --- a/config/rootfiles/core/172/update.sh +++ b/config/rootfiles/core/172/update.sh @@ -33,6 +33,7 @@ done # Stop services /etc/rc.d/init.d/ipsec stop +/etc/rc.d/init.d/sshd stop # Remove files @@ -48,7 +49,13 @@ ldconfig # Filesytem cleanup /usr/local/bin/filesystem-cleanup +# Apply local configuration to sshd_config +/usr/local/bin/sshctrl + # Start services +if grep -q "ENABLE_SSH=on" /var/ipfire/remote/settings; then + /etc/init.d/sshd start +fi if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then /etc/init.d/ipsec start fi -- 2.39.5