Core Update 172: Ship and restart OpenSSH

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
Peter Müller
2022-10-24 09:03:08 +00:00
parent 89e47eaca8
commit 4ddb1fdac0
2 changed files with 8 additions and 0 deletions

View File

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

View File

@@ -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