Compare commits

..

No commits in common. "5aa51ff3b0816b87454b11a18672c498b9649a61" and "a87f1b49eb210825051d47744297987d0609bf19" have entirely different histories.

View File

@ -3,13 +3,7 @@
checkLibrePortalWebUIImageRequirement() checkLibrePortalWebUIImageRequirement()
{ {
if [[ $CFG_REQUIREMENT_WEBUI == "true" ]]; then if [[ $CFG_REQUIREMENT_WEBUI == "true" ]]; then
# stderr → log, not the terminal: when the task processor service is down if runFileOp docker images --format "{{.Repository}}:{{.Tag}}" | grep -q "libreportal-service:latest"; then
# the rootless daemon socket is absent and `docker images` prints a daemon
# connection error. The "has not been setup" notice below already conveys
# the outcome, so keep the raw error for diagnostics only.
local images
images=$(runFileOp docker images --format "{{.Repository}}:{{.Tag}}" 2>>"$logs_dir/$docker_log_file")
if echo "$images" | grep -q "libreportal-service:latest"; then
isSuccessful "LibrePortal WebUI Docker Image appears to be setup." isSuccessful "LibrePortal WebUI Docker Image appears to be setup."
else else
isNotice "LibrePortal WebUI Docker Image has not been setup." isNotice "LibrePortal WebUI Docker Image has not been setup."