]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Core Update 183: Ship and restart OpenSSH
authorPeter Müller <peter.mueller@ipfire.org>
Sat, 30 Dec 2023 06:57:03 +0000 (06:57 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Sat, 30 Dec 2023 06:57:03 +0000 (06:57 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/183/filelists/openssh [new symlink]
config/rootfiles/core/183/update.sh

diff --git a/config/rootfiles/core/183/filelists/openssh b/config/rootfiles/core/183/filelists/openssh
new file mode 120000 (symlink)
index 0000000..d8c77fd
--- /dev/null
@@ -0,0 +1 @@
+../../../common/openssh
\ No newline at end of file
index 8eaab80c24aded11a269a42f953e532298c43fe1..b5b10667bdb454f15c84808730fd78e9e2ccf88e 100644 (file)
@@ -44,6 +44,7 @@ for (( i=1; i<=$core; i++ )); do
 done
 
 # Stop services
+/etc/rc.d/init.d/sshd stop
 
 KVER="xxxKVERxxx"
 
@@ -103,6 +104,9 @@ ldconfig
 /usr/local/bin/sshctrl
 
 # Start services
+if grep -q "ENABLE_SSH=on" /var/ipfire/remote/settings; then
+       /etc/init.d/sshd start
+fi
 
 # Rebuild initial ramdisks
 dracut --regenerate-all --force