mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
Core Update 173: Ship and restart OpenSSH
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
This commit is contained in:
1
config/rootfiles/core/173/filelists/openssh
Symbolic link
1
config/rootfiles/core/173/filelists/openssh
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
../../../common/openssh
|
||||||
@@ -48,6 +48,7 @@ done
|
|||||||
/etc/rc.d/init.d/ipsec stop
|
/etc/rc.d/init.d/ipsec stop
|
||||||
/usr/local/bin/openvpnctrl -k
|
/usr/local/bin/openvpnctrl -k
|
||||||
/usr/local/bin/openvpnctrl -kn2n
|
/usr/local/bin/openvpnctrl -kn2n
|
||||||
|
/etc/rc.d/init.d/sshd stop
|
||||||
|
|
||||||
KVER="xxxKVERxxx"
|
KVER="xxxKVERxxx"
|
||||||
|
|
||||||
@@ -130,8 +131,14 @@ done
|
|||||||
# Filesytem cleanup
|
# Filesytem cleanup
|
||||||
/usr/local/bin/filesystem-cleanup
|
/usr/local/bin/filesystem-cleanup
|
||||||
|
|
||||||
|
# Apply local configuration to sshd_config
|
||||||
|
/usr/local/bin/sshctrl
|
||||||
|
|
||||||
# Start services
|
# Start services
|
||||||
/etc/rc.d/init.d/apache start
|
/etc/rc.d/init.d/apache start
|
||||||
|
if grep -q "ENABLE_SSH=on" /var/ipfire/remote/settings; then
|
||||||
|
/etc/init.d/sshd start
|
||||||
|
fi
|
||||||
if grep -q "ENABLED=on" /var/ipfire/ovpn/settings; then
|
if grep -q "ENABLED=on" /var/ipfire/ovpn/settings; then
|
||||||
/usr/local/bin/openvpnctrl -s
|
/usr/local/bin/openvpnctrl -s
|
||||||
/usr/local/bin/openvpnctrl -sn2n
|
/usr/local/bin/openvpnctrl -sn2n
|
||||||
|
|||||||
Reference in New Issue
Block a user