Update 02-init_steps.sh

https://github.com/alexbelgium/hassio-addons/issues/1158
This commit is contained in:
Alexandre
2024-01-07 17:17:01 +01:00
committed by GitHub
parent 82e68d5959
commit f9db4afaf3

View File

@@ -2,6 +2,12 @@
# shellcheck shell=bash
set -e
# Clear default.conf
if [ ! -f /done ] && [ -f /data/config/nginx/site-confs/default.conf ]; then
rm /data/config/nginx/site-confs/default.conf
touch /done
fi
# Runs only after initialization done
# shellcheck disable=SC2128
if [ ! -f /app/www/public/occ ]; then cp /etc/cont-init.d/"$(basename "${BASH_SOURCE}")" /scripts/ && exit 0; fi