diff --git a/tools/dind/config/services/resin-supervisor-dind.service b/tools/dind/config/services/resin-supervisor-dind.service index 3d7eac6c..8b45f153 100644 --- a/tools/dind/config/services/resin-supervisor-dind.service +++ b/tools/dind/config/services/resin-supervisor-dind.service @@ -8,7 +8,7 @@ Before=openvpn-resin.service WorkingDirectory=/usr/src/app EnvironmentFile=/usr/src/app/config/env EnvironmentFile=/usr/src/app/config/localenv -ExecStartPre=/bin/bash -c 'if [ "${PRELOADED_IMAGE}" -eq "true" ]; then /usr/bin/docker pull $(jq ".[0].imageId" ${APPS_PATH}); fi' +ExecStartPre=/bin/bash -c 'if [ "${PRELOADED_IMAGE}" == "true" ]; then /usr/bin/docker pull $(jq ".[0].imageId" ${APPS_PATH}); fi' ExecStartPre=/usr/bin/docker pull ${SUPERVISOR_IMAGE} ExecStartPre=-/usr/bin/docker kill resin_supervisor ExecStartPre=-/usr/bin/docker rm resin_supervisor