From ba385a8b97d72e91548d8ea4010317d49e0c4863 Mon Sep 17 00:00:00 2001 From: librelad Date: Sun, 24 May 2026 15:11:35 +0100 Subject: [PATCH] fix(manager): marker-guard the manager-user sshd append install_user_manager appended a 'Match User' block to sshd_config with no marker guard, unlike the rootless .bashrc block beside it. The enclosing 'if ! userExists' gate hides it today, but a user delete+recreate would append a second block. Guard on the '### LibrePortal Manager User Start' marker so the append is idempotent. Co-Authored-By: Claude Opus 4.7 Signed-off-by: librelad --- scripts/install/manager/install_user_manager.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/scripts/install/manager/install_user_manager.sh b/scripts/install/manager/install_user_manager.sh index 577f236..e1ee862 100755 --- a/scripts/install/manager/install_user_manager.sh +++ b/scripts/install/manager/install_user_manager.sh @@ -46,7 +46,12 @@ installDockerManagerUser() local result=$(source ~/.bashrc) checkSuccess "Reloading .bashrc" -local result=$(sudo bash -c "cat >> $sshd_config <> $sshd_config <