diff --git a/.hadolint.yaml b/.hadolint.yaml new file mode 100644 index 000000000..f48ae23e6 --- /dev/null +++ b/.hadolint.yaml @@ -0,0 +1,8 @@ +ignored: + - DL3002 + - DL3006 + - DL3007 + - DL3008 + - DL3009 + - DL3018 + - MD041 diff --git a/photoprism/rootfs/run.sh b/photoprism/rootfs/run.sh index 0eae15a28..f205d7aa4 100644 --- a/photoprism/rootfs/run.sh +++ b/photoprism/rootfs/run.sh @@ -6,11 +6,11 @@ for SCRIPTS in "/00-banner.sh" "/92-local_mounts.sh" "/92-smb_mounts.sh"; do echo $SCRIPTS - chown $(id -u):$(id -g) $SCRIPTS + chown "$(id -u)":"$(id -g)" "$SCRIPTS" chmod a+x $SCRIPTS sed -i 's|/usr/bin/with-contenv bashio|/usr/bin/env bashio|g' $SCRIPTS /.$SCRIPTS && - true || true # Prevents script crash on failure + true || true # Prevents script crash on failure echo "exit $?" done