diff --git a/cloudcommander/rootfs/etc/cont-init.d/99-run.sh b/cloudcommander/rootfs/etc/cont-init.d/99-run.sh index a91ae2b0b..f135df52d 100755 --- a/cloudcommander/rootfs/etc/cont-init.d/99-run.sh +++ b/cloudcommander/rootfs/etc/cont-init.d/99-run.sh @@ -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 #