From 2087214036033f96fcde31c2a6d52530b01160d8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20M=C3=BCller?= Date: Wed, 22 Nov 2023 16:14:26 +0000 Subject: [PATCH] Core Update 182: 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/182/filelists/openssh | 1 + config/rootfiles/core/182/update.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 120000 config/rootfiles/core/182/filelists/openssh diff --git a/config/rootfiles/core/182/filelists/openssh b/config/rootfiles/core/182/filelists/openssh new file mode 120000 index 0000000000..d8c77fd8e7 --- /dev/null +++ b/config/rootfiles/core/182/filelists/openssh @@ -0,0 +1 @@ +../../../common/openssh \ No newline at end of file diff --git a/config/rootfiles/core/182/update.sh b/config/rootfiles/core/182/update.sh index 5d0bb16878..b00218f510 100644 --- a/config/rootfiles/core/182/update.sh +++ b/config/rootfiles/core/182/update.sh @@ -35,6 +35,7 @@ done /etc/rc.d/init.d/ipsec stop /etc/rc.d/init.d/squid stop /etc/rc.d/init.d/unbound stop +/etc/rc.d/init.d/sshd stop # Extract files extract_files @@ -66,8 +67,14 @@ ldconfig # Filesytem cleanup /usr/local/bin/filesystem-cleanup +# Apply local configuration to sshd_config +/usr/local/bin/sshctrl + # Start services /etc/init.d/unbound start +if grep -q "ENABLE_SSH=on" /var/ipfire/remote/settings; then + /etc/init.d/sshd start +fi if [ -f /var/ipfire/proxy/enable ]; then /etc/init.d/squid start fi -- 2.39.5