Compare commits

..

No commits in common. "ab505ac012e1869481f414b5e3d7d78f2a2e04d0" and "d733b70ee7b4e331c5d95ad0fe0c1b091b1c59e8" have entirely different histories.

View File

@ -46,12 +46,7 @@ installDockerManagerUser()
local result=$(source ~/.bashrc)
checkSuccess "Reloading .bashrc"
# Marker-guard the append (matching the rootless .bashrc pattern)
# so a re-run or a user delete+recreate can't duplicate the block.
if sudo grep -q "### LibrePortal Manager User Start" "$sshd_config"; then
isNotice "Manager-user SSH server config already present — skipping."
else
local result=$(sudo bash -c "cat >> $sshd_config <<EOL
local result=$(sudo bash -c "cat >> $sshd_config <<EOL
### LibrePortal Manager User Start
Match User $CFG_DOCKER_MANAGER_USER
@ -63,12 +58,12 @@ Match User $CFG_DOCKER_MANAGER_USER
PasswordAuthentication yes
### LibrePortal Manager User End
EOL")
checkSuccess "Updating SSH Server Configuration for the Manager User."
# Reload SSH Service
local result=$(sudo service ssh reload)
checkSuccess "Reloading SSH Service"
fi
checkSuccess "Updating SSH Server Configuration for the Manager User."
# Reload SSH Service
local result=$(sudo service ssh reload)
checkSuccess "Reloading SSH Service"
isSuccessful "User '$CFG_DOCKER_MANAGER_USER' with restricted SFTP access to '/home/$CFG_DOCKER_MANAGER_USER' has been set up."
fi