Core Update 175: Ship and restart OpenSSH

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
Peter Müller
2023-04-18 21:14:06 +00:00
parent 48af3df725
commit dc93dd9d19
2 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1 @@
../../../common/openssh

View 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