reload-or-restart ssh prevents botching if sshd is started by a systemd socket

This commit is contained in:
Alessandro Lannocca 2024-05-12 03:16:36 +02:00
parent 8827b0db51
commit ffee50a8a6

View File

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