mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Update 02-init_steps.sh
https://github.com/alexbelgium/hassio-addons/issues/1170#issuecomment-1887415970
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
|
||||
# Clear default.conf
|
||||
if [ ! -f /done ] && [ -f /data/config/nginx/site-confs/default.conf ]; then
|
||||
# Clear default.conf from erroneous upstream element (only once)
|
||||
if [ ! -f /data/done ] && [ -f /data/config/nginx/site-confs/default.conf ]; then
|
||||
rm /data/config/nginx/site-confs/default.conf
|
||||
touch /done
|
||||
touch /data/done
|
||||
bashio::addon.restart
|
||||
fi
|
||||
|
||||
# Runs only after initialization done
|
||||
|
||||
Reference in New Issue
Block a user