mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 10:35:53 +02:00
Core Update 172: Ship and restart OpenSSH
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
1
config/rootfiles/core/172/filelists/openssh
Symbolic link
1
config/rootfiles/core/172/filelists/openssh
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../common/openssh
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user