]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Core Update 175: Ship and restart OpenSSH
authorPeter Müller <peter.mueller@ipfire.org>
Tue, 18 Apr 2023 21:14:06 +0000 (21:14 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Tue, 18 Apr 2023 21:14:06 +0000 (21:14 +0000)
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
config/rootfiles/core/175/filelists/openssh [new symlink]
config/rootfiles/core/175/update.sh

diff --git a/config/rootfiles/core/175/filelists/openssh b/config/rootfiles/core/175/filelists/openssh
new file mode 120000 (symlink)
index 0000000..d8c77fd
--- /dev/null
@@ -0,0 +1 @@
+../../../common/openssh
\ No newline at end of file
index b5a914a9189258a04fd7458b1dc9e6a6ede3f48b..8ed5cd60d50ad1911ffbc33f28e43e095e28520f 100644 (file)
@@ -32,6 +32,7 @@ for (( i=1; i<=$core; i++ )); do
 done
 
 # Stop services
+/etc/rc.d/init.d/sshd stop
 
 # Extract files
 extract_files
@@ -55,7 +56,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
 
 # This update needs a reboot...
 #touch /var/run/need_reboot