Compare commits
2 Commits
a87f1b49eb
...
5aa51ff3b0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5aa51ff3b0 | ||
|
|
3a97c228da |
@ -3,7 +3,13 @@
|
||||
checkLibrePortalWebUIImageRequirement()
|
||||
{
|
||||
if [[ $CFG_REQUIREMENT_WEBUI == "true" ]]; then
|
||||
if runFileOp docker images --format "{{.Repository}}:{{.Tag}}" | grep -q "libreportal-service:latest"; then
|
||||
# stderr → log, not the terminal: when the task processor service is down
|
||||
# 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."
|
||||
else
|
||||
isNotice "LibrePortal WebUI Docker Image has not been setup."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user