mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-15 09:24:34 +01:00
Update symlink handling in 99-run.sh
Modify symlink creation and deletion to prevent errors.
This commit is contained in:
@@ -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 #
|
||||
|
||||
Reference in New Issue
Block a user