From b0411d5da99fcfbac60d4335fcbca0a66096cca6 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Mon, 12 Sep 2022 01:47:03 +0200 Subject: [PATCH] [fix] Lidswitch if no reboot --- hooks/conf_regen/01-yunohost | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hooks/conf_regen/01-yunohost b/hooks/conf_regen/01-yunohost index dc0bfc689..14c0da969 100755 --- a/hooks/conf_regen/01-yunohost +++ b/hooks/conf_regen/01-yunohost @@ -221,7 +221,10 @@ do_post_regen() { systemctl restart ntp } [[ ! "$regen_conf_files" =~ "nftables.service.d/ynh-override.conf" ]] || systemctl daemon-reload - [[ ! "$regen_conf_files" =~ "login.conf.d/ynh-override.conf" ]] || systemctl daemon-reload + [[ ! "$regen_conf_files" =~ "login.conf.d/ynh-override.conf" ]] || { + systemctl daemon-reload + systemctl restart systemd-logind + } [[ ! "$regen_conf_files" =~ "yunohost-firewall.service" ]] || systemctl daemon-reload [[ ! "$regen_conf_files" =~ "yunohost-api.service" ]] || systemctl daemon-reload