Update 00-migration.sh

This commit is contained in:
Alexandre
2023-12-09 15:27:25 +01:00
committed by GitHub
parent f504f3ede6
commit 6ba41de923

View File

@@ -91,15 +91,15 @@ fi || true
if bashio::config.has_value 'smbv1'; then
bashio::addon.option "smbv1"
bashio::log.yellow "... smbv1 : removed as not used anymore"
MIGRATED=true
fi || true
if bashio::config.has_value 'openvpn_config'; then
openvpn_config="$(bashio::config "openvpn_config")"
if [ -f "$openvpn_config" ]; then
mv "$openvpn_config" /config/openvpn/
bashio::log.yellow "... openvpn file migrated to new location"
fi
MIGRATED=true
bashio::addon.option "openvpn_config"
fi || true
if [[ "$MIGRATED" == "true" ]]; then