mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 13:24:04 +02:00
Merge pull request #2563 from alexbelgium/copilot/fix-cloudcommander-error
Fix CloudCommander startup error on missing /homeassistant/addons_config
This commit is contained in:
@@ -18,7 +18,10 @@ fi
|
|||||||
|
|
||||||
# Clean symlinks
|
# Clean symlinks
|
||||||
find /config -maxdepth 1 -type l -delete
|
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
|
# Remove erroneous folders
|
||||||
if [ -d /homeassistant ]; then
|
if [ -d /homeassistant ]; then
|
||||||
if [ -d /config/addons_config ]; then
|
if [ -d /config/addons_config ]; then
|
||||||
@@ -29,10 +32,14 @@ if [ -d /homeassistant ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create symlinks
|
# Create symlinks with legacy folders
|
||||||
find /addon_configs/ -maxdepth 1 -mindepth 1 -type d -not -name "*cloudcommander*" -exec ln -s {} /config/addons_config/ \;
|
if [ -d /homeassistant/addons_config ]; then
|
||||||
ln -s /homeassistant/addons_config /config || true
|
ln -s /homeassistant/addons_config /config
|
||||||
ln -s /homeassistant/addons_autoscripts /config || true
|
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 #
|
# NGINX SETTING #
|
||||||
|
|||||||
Reference in New Issue
Block a user