mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-30 19:26:07 +02:00
fix: auto-fix linting issues
This commit is contained in:
committed by
github-actions[bot]
parent
e5adbd266f
commit
f728166b14
@@ -7,9 +7,9 @@ set -e
|
||||
####################
|
||||
|
||||
if [ -f /homeassistant/addons_config/filebrowser/filebrowser.dB ]; then
|
||||
echo "Moving database to new location /config"
|
||||
cp -rnf /homeassistant/addons_config/filebrowser/* /config/
|
||||
rm -r /homeassistant/addons_config/filebrowser
|
||||
echo "Moving database to new location /config"
|
||||
cp -rnf /homeassistant/addons_config/filebrowser/* /config/
|
||||
rm -r /homeassistant/addons_config/filebrowser
|
||||
fi
|
||||
|
||||
######################
|
||||
@@ -19,24 +19,24 @@ fi
|
||||
# Clean symlinks
|
||||
find /config -maxdepth 1 -type l -delete
|
||||
if [ -d /homeassistant/addons_config ]; then
|
||||
find /homeassistant/addons_config -maxdepth 1 -type l -delete
|
||||
find /homeassistant/addons_config -maxdepth 1 -type l -delete
|
||||
fi
|
||||
|
||||
# Remove erroneous folders
|
||||
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
|
||||
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 with legacy folders
|
||||
if [ -d /homeassistant/addons_config ]; then
|
||||
ln -s /homeassistant/addons_config /config
|
||||
find /addon_configs/ -maxdepth 1 -mindepth 1 -type d -not -name "*filebrowser*" -exec ln -s {} /config/addons_config/ \;
|
||||
ln -s /homeassistant/addons_config /config
|
||||
find /addon_configs/ -maxdepth 1 -mindepth 1 -type d -not -name "*filebrowser*" -exec ln -s {} /config/addons_config/ \;
|
||||
fi
|
||||
if [ -d /homeassistant/addons_autoscripts ]; then
|
||||
ln -s /homeassistant/addons_autoscripts /config
|
||||
ln -s /homeassistant/addons_autoscripts /config
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user