X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=entrypoint.sh;h=48df1e6fb0371736b1de622b61021c212a8e71f5;hb=c11c45a661addf377ac5f4773ba39f5ef66ec155;hp=eba1cb20ac3c39d79c92d35640cb36b10adcae24;hpb=7e48e099aa968307d2b99720a076b4bdc706b5fd;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/entrypoint.sh b/entrypoint.sh index eba1cb2..48df1e6 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,7 +3,7 @@ PERMISSION_ERROR="Check assets directory permissions & docker user or skip default assets install by setting the INIT_ASSETS env var to 0" # Default assets & exemple configuration installation if possible. -if [[ "${INIT_ASSETS}" == "1" ]] && [[ ! -f "/www/config.yml" ]]; then +if [[ "${INIT_ASSETS}" == "1" ]] && [[ ! -f "/www/assets/config.yml" ]]; then echo "No configuration found, installing default config & assets" if [[ ! -w "/www/assets/" ]]; then echo "Assets directory not writable. $PERMISSION_ERROR" && exit 1; fi