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

This commit is contained in:
Alessandro Lannocca 2024-05-12 04:59:32 +02:00
parent ffee50a8a6
commit 6725032191

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-or-restart ssh.service
systemctl restart ssh.service
# rpardini: hacks per-dm, very much legacy stuff that works by a miracle
if [[ "${desktop_dm}" == "lightdm" ]] && [ -n "$RealName" ]; then