A fresh rootless install left /docker/containers/libreportal/frontend owned by the manager (webui_install_image chowned -R to $sudo_user_name) while the WebUI container and the host-side runFileOp generators run as dockerinstall. So every generator touch under frontend/data and frontend/logs failed with 'Permission denied' (~27 in the install log). reconcileDockerOwnership chowns the WebUI dir to the mode's container owner, but only runs on a mode switch, not on a fresh install. Extract that WebUI-dir chown into reconcileWebuiDirOwnership (rooted -> manager, rootless -> the config-authoritative docker install user; runs as root so it can chown either way) and call it from both reconcileDockerOwnership and the fresh-install WebUI setup. A fresh install now lands the same ownership a switch does, so the dockerinstall generators can write. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
17 lines
616 B
Bash
Executable File
17 lines
616 B
Bash
Executable File
#!/bin/bash
|
|
|
|
installLibrePortalImageWebUI()
|
|
{
|
|
isHeader "LibrePortal WebUI Image"
|
|
|
|
isNotice "Building the LibrePortal WebUI Docker image..."
|
|
|
|
local result=$(copyFolder "$install_containers_dir/libreportal" "$containers_dir" "$sudo_user_name")
|
|
checkSuccess "Copy the LibrePortal to the containers folder"
|
|
|
|
reconcileWebuiDirOwnership
|
|
|
|
isNotice "Building libreportal-service image, this may take a while..."
|
|
local result=$(sudo docker build -t libreportal-service -f $containers_dir/libreportal/Dockerfile $containers_dir/libreportal >/dev/null 2>&1)
|
|
checkSuccess "Built LibrePortal WebUI Docker image"
|
|
} |