reload-or-restart ssh prevents botching if sshd is started by a systemd socket
This commit is contained in:
parent
8827b0db51
commit
ffee50a8a6
@ -579,7 +579,7 @@ if [[ -f /root/.not_logged_in_yet && -n $(tty) ]]; then
|
||||
# re-enable passing locale environment via ssh
|
||||
sed -e '/^#AcceptEnv LANG/ s/^#//' -i /etc/ssh/sshd_config
|
||||
# restart sshd daemon
|
||||
systemctl reload ssh.service
|
||||
systemctl reload-or-restart ssh.service
|
||||
|
||||
# rpardini: hacks per-dm, very much legacy stuff that works by a miracle
|
||||
if [[ "${desktop_dm}" == "lightdm" ]] && [ -n "$RealName" ]; then
|
||||
|
||||
Loading…
Reference in New Issue
Block a user