mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-26 17:26:05 +02:00
Update 20-folders.sh
This commit is contained in:
@@ -21,9 +21,20 @@ 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
|
find /homeassistant/addons_config -maxdepth 1 -type l -delete
|
||||||
|
if [ -d /homeassistant ]; then
|
||||||
|
if [ -d /config/addons_config ]; then
|
||||||
|
rm -r /config/addons_config
|
||||||
|
fi
|
||||||
|
if [ -d /config/addons_autoscripts ]; then
|
||||||
|
rm -r /config/addons_autoscripts
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Create symlinks
|
# Create symlinks
|
||||||
ln -fs /homeassistant/addons_config /config
|
ln -s /homeassistant/addons_config /config
|
||||||
ln -fs /homeassistant/addons_autoscripts /config
|
ln -s /homeassistant/addons_autoscripts /config
|
||||||
for folders in $(find /addon_configs -maxdepth 1 -type d -not -name "*filebrowser*"); do
|
|
||||||
ln -fs "/${folders##*\/}" /config/addons_config
|
for folders in $(find /addon_configs/ -maxdepth 1 -mindepth 1 -type d -not -name "*filebrowser*"); do
|
||||||
|
ln -fs "${folders}" /config/addons_config/
|
||||||
|
echo $folders
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user