fix: address filebrowser quantum review feedback

This commit is contained in:
copilot-swe-agent[bot]
2026-06-03 06:17:00 +00:00
committed by GitHub
parent b48899b5bf
commit d9b525b464

View File

@@ -12,9 +12,14 @@ if [ -f /homeassistant/addons_config/filebrowser_quantum/filebrowser_quantum.db
rm -r /homeassistant/addons_config/filebrowser_quantum
fi
if [ ! -f /config/filebrowser_quantum.db ] && [ -f /homeassistant/addon_configs/db21ed7f_filebrowser_quantum/filebrowser_quantum.db ]; then
echo "Moving database from addon_configs location to /config"
cp -rnf /homeassistant/addon_configs/db21ed7f_filebrowser_quantum/* /config/
if [ ! -f /config/filebrowser_quantum.db ] && [ -d /addon_configs ]; then
for addon_config_dir in /addon_configs/*_filebrowser_quantum; do
if [ -f "$addon_config_dir/filebrowser_quantum.db" ]; then
echo "Moving database from addon_configs location to /config"
cp -rnf "$addon_config_dir"/* /config/
break
fi
done
fi
######################
@@ -26,10 +31,6 @@ find /config -maxdepth 1 -type l -delete
if [ -d /homeassistant/addons_config ]; then
find /homeassistant/addons_config -maxdepth 1 -type l -delete
fi
if [ -d /homeassistant/addon_configs ]; then
find /homeassistant/addon_configs -maxdepth 1 -type l -delete
fi
# Remove erroneous folders
if [ -d /homeassistant ]; then
if [ -d /config/addons_config ]; then
@@ -47,8 +48,8 @@ fi
if [ -d /homeassistant/addons_config ]; then
ln -s /homeassistant/addons_config /config
find /addon_configs/ -maxdepth 1 -mindepth 1 -type d -not -name "*filebrowser_quantum*" -exec ln -s {} /config/addons_config/ \;
elif [ -d /homeassistant/addon_configs ]; then
ln -s /homeassistant/addon_configs /config
elif [ -d /addon_configs ]; then
mkdir -p /config/addon_configs
find /addon_configs/ -maxdepth 1 -mindepth 1 -type d -not -name "*filebrowser_quantum*" -exec ln -s {} /config/addon_configs/ \;
fi
if [ -d /homeassistant/addons_autoscripts ]; then