Update symlink handling in 99-run.sh

Modify symlink creation and deletion to prevent errors.
This commit is contained in:
Alexandre
2026-03-06 18:38:27 +01:00
committed by GitHub
parent c7e166677d
commit 1408a6e434

View File

@@ -18,8 +18,7 @@ fi
# Clean symlinks
find /config -maxdepth 1 -type l -delete
find /homeassistant/addons_config -maxdepth 1 -type l -delete
find /homeassistant/addons_config -maxdepth 1 -type l -delete || true
# Remove erroneous folders
if [ -d /homeassistant ]; then
if [ -d /config/addons_config ]; then
@@ -31,9 +30,9 @@ if [ -d /homeassistant ]; then
fi
# Create symlinks
ln -s /homeassistant/addons_config /config
ln -s /homeassistant/addons_autoscripts /config
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
#################
# NGINX SETTING #