aboutsummaryrefslogtreecommitdiffhomepage
path: root/entrypoint.sh
diff options
context:
space:
mode:
authorNuno Goncalves <nuno.gonkalves@gmail.com>2022-06-29 10:58:05 +0100
committerGitHub <noreply@github.com>2022-06-29 10:58:05 +0100
commit71d929a55a50b4b5fa1bc6524b74f6fd5dab814c (patch)
treeb3ccbbf7337d9ee348954e333094682be4e911a3 /entrypoint.sh
parenta01c40d4b34e1c4afea5b8e52f69e9a328b51d33 (diff)
downloadhomer-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.sh2
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 @@
3PERMISSION_ERROR="Check assets directory permissions & docker user or skip default assets install by setting the INIT_ASSETS env var to 0" 3PERMISSION_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.
6if [[ "${INIT_ASSETS}" == "1" ]] && [[ ! -f "/www/config.yml" ]]; then 6if [[ "${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