Update 00-global_migration.sh

This commit is contained in:
Alexandre
2023-12-10 08:36:20 +01:00
committed by GitHub
parent 9f2e7b74d3
commit 9b34143412

View File

@@ -26,11 +26,16 @@ fi || true
if [ -d /homeassistant/openvpn ]; then
if [ "$(ls -A /homeassistant/openvpn)" ]; then
mv /homeassistant/openvpn/* /config/openvpn/
rm -r /homeassistant/openvpn
bashio::log.yellow "... moved files from /config/openvpn to /addon_configs/$HOSTNAME/openvpn"
fi
fi || true
# Restore openvpn files
if [ "$(ls -A /config/openvpn)" ]; then
mkdir -p /homeassistant/openvpn
cp -rnf /config/openvpn/* /homeassistant/openvpn
fi
if [ -f /homeassistant/addons_config/qbittorrent/config.yaml ]; then
mv /homeassistant/addons_config/qbittorrent/* /config/
rm -r /homeassistant/addons_config/qbittorrent