diff options
author | Nuno Goncalves <nuno.gonkalves@gmail.com> | 2022-06-29 10:58:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-29 10:58:05 +0100 |
commit | 71d929a55a50b4b5fa1bc6524b74f6fd5dab814c (patch) | |
tree | b3ccbbf7337d9ee348954e333094682be4e911a3 /entrypoint.sh | |
parent | a01c40d4b34e1c4afea5b8e52f69e9a328b51d33 (diff) | |
download | homer-71d929a55a50b4b5fa1bc6524b74f6fd5dab814c.tar.gz homer-71d929a55a50b4b5fa1bc6524b74f6fd5dab814c.tar.zst homer-71d929a55a50b4b5fa1bc6524b74f6fd5dab814c.zip |
Fix wrong config.yml path
Path to config.yml when checking for existing configuration was wrong and it will never be found
Diffstat (limited to 'entrypoint.sh')
-rw-r--r-- | entrypoint.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/entrypoint.sh b/entrypoint.sh index eba1cb2..48df1e6 100644 --- a/entrypoint.sh +++ b/entrypoint.sh | |||
@@ -3,7 +3,7 @@ | |||
3 | PERMISSION_ERROR="Check assets directory permissions & docker user or skip default assets install by setting the INIT_ASSETS env var to 0" | 3 | PERMISSION_ERROR="Check assets directory permissions & docker user or skip default assets install by setting the INIT_ASSETS env var to 0" |
4 | 4 | ||
5 | # Default assets & exemple configuration installation if possible. | 5 | # Default assets & exemple configuration installation if possible. |
6 | if [[ "${INIT_ASSETS}" == "1" ]] && [[ ! -f "/www/config.yml" ]]; then | 6 | if [[ "${INIT_ASSETS}" == "1" ]] && [[ ! -f "/www/assets/config.yml" ]]; then |
7 | echo "No configuration found, installing default config & assets" | 7 | echo "No configuration found, installing default config & assets" |
8 | if [[ ! -w "/www/assets/" ]]; then echo "Assets directory not writable. $PERMISSION_ERROR" && exit 1; fi | 8 | if [[ ! -w "/www/assets/" ]]; then echo "Assets directory not writable. $PERMISSION_ERROR" && exit 1; fi |
9 | 9 | ||