Merge pull request #2563 from alexbelgium/copilot/fix-cloudcommander-error

Fix CloudCommander startup error on missing /homeassistant/addons_config
This commit is contained in:
Alexandre
2026-03-06 18:39:31 +01:00
committed by GitHub

View File

@@ -18,7 +18,10 @@ fi
# Clean symlinks
find /config -maxdepth 1 -type l -delete
find /homeassistant/addons_config -maxdepth 1 -type l -delete || true
if [ -d /homeassistant/addons_config ]; then
find /homeassistant/addons_config -maxdepth 1 -type l -delete
fi
# Remove erroneous folders
if [ -d /homeassistant ]; then
if [ -d /config/addons_config ]; then
@@ -29,10 +32,14 @@ if [ -d /homeassistant ]; then
fi
fi
# Create symlinks
find /addon_configs/ -maxdepth 1 -mindepth 1 -type d -not -name "*cloudcommander*" -exec ln -s {} /config/addons_config/ \;
ln -s /homeassistant/addons_config /config || true
ln -s /homeassistant/addons_autoscripts /config || true
# Create symlinks with legacy folders
if [ -d /homeassistant/addons_config ]; then
ln -s /homeassistant/addons_config /config
find /addon_configs/ -maxdepth 1 -mindepth 1 -type d -not -name "*cloudcommander*" -exec ln -s {} /config/addons_config/ \;
fi
if [ -d /homeassistant/addons_autoscripts ]; then
ln -s /homeassistant/addons_autoscripts /config
fi
#################
# NGINX SETTING #