]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - entrypoint.sh
PiAlert custom service (#674)
[github/bastienwirtz/homer.git] / entrypoint.sh
index eba1cb20ac3c39d79c92d35640cb36b10adcae24..e970d34c93945dd113ca69c88db4b72e63d908b0 100644 (file)
@@ -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
     
@@ -15,4 +15,4 @@ if [[ "${INIT_ASSETS}" == "1" ]] && [[ ! -f "/www/config.yml" ]]; then
 fi
 
 echo "Starting webserver"
-lighttpd -D -f /lighttpd.conf
+exec lighttpd -D -f /lighttpd.conf