From 39e7a64f6dd11a75af5ac5d7c3009d3fca14f05e Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 13 Feb 2021 09:28:39 +0100 Subject: [PATCH] Update Dockerfile --- scrutiny/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scrutiny/Dockerfile b/scrutiny/Dockerfile index 5299b0211..4e4027ee8 100644 --- a/scrutiny/Dockerfile +++ b/scrutiny/Dockerfile @@ -29,8 +29,8 @@ RUN \ && sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser # use /data instead of /config for hass.io environment -RUN grep -rl '/config' /etc/cont-init.d/* | xargs sed -i "" 's=/config=/data=g' \ - && grep -rl '/config' /etc/system.d/* | xargs sed -i "" 's=/config=/data=g' \ - && grep -rl '/config' /defaults/* | xargs sed -i "" 's=/config=/data=g' || true +RUN grep -rl /etc/cont-init.d/* -e '/config' | xargs sed -i "" 's=/config=/data=g' \ + && grep -rl /etc/system.d/* -e '/config' | xargs sed -i "" 's=/config=/data=g' \ + && grep -rl /defaults/* -e '/config' | xargs sed -i "" 's=/config=/data=g' || true VOLUME [ "/data:/config" ]