mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-08-03 20:00:32 +02:00
Update 02-init_steps.sh
https://github.com/alexbelgium/hassio-addons/issues/1158
This commit is contained in:
@@ -2,6 +2,12 @@
|
|||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
set -e
|
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
|
# Runs only after initialization done
|
||||||
# shellcheck disable=SC2128
|
# shellcheck disable=SC2128
|
||||||
if [ ! -f /app/www/public/occ ]; then cp /etc/cont-init.d/"$(basename "${BASH_SOURCE}")" /scripts/ && exit 0; fi
|
if [ ! -f /app/www/public/occ ]; then cp /etc/cont-init.d/"$(basename "${BASH_SOURCE}")" /scripts/ && exit 0; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user