diff --git a/aio/aio-builds-setup/dockerbuild/Dockerfile b/aio/aio-builds-setup/dockerbuild/Dockerfile index 61ffe68759..c86a4fc1e3 100644 --- a/aio/aio-builds-setup/dockerbuild/Dockerfile +++ b/aio/aio-builds-setup/dockerbuild/Dockerfile @@ -112,8 +112,8 @@ RUN update-ca-certificates # Set up nginx (for production and testing) RUN sed -i -E "s|^user\s+\S+;|user $AIO_WWW_USER;|" /etc/nginx/nginx.conf -RUN [[ -d /etc/nginx/conf.d/ ]] && rm /etc/nginx/conf.d/* -RUN [[ -d /etc/nginx/sites-enabled/ ]] && rm /etc/nginx/sites-enabled/* +RUN rm -f /etc/nginx/conf.d/* +RUN rm -f /etc/nginx/sites-enabled/* COPY nginx/aio-builds.conf /etc/nginx/conf.d/aio-builds-prod.conf RUN sed -i "s|{{\$AIO_BUILDS_DIR}}|$AIO_BUILDS_DIR|g" /etc/nginx/conf.d/aio-builds-prod.conf