mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
Update 00-migration.sh
This commit is contained in:
@@ -91,15 +91,15 @@ fi || true
|
|||||||
if bashio::config.has_value 'smbv1'; then
|
if bashio::config.has_value 'smbv1'; then
|
||||||
bashio::addon.option "smbv1"
|
bashio::addon.option "smbv1"
|
||||||
bashio::log.yellow "... smbv1 : removed as not used anymore"
|
bashio::log.yellow "... smbv1 : removed as not used anymore"
|
||||||
MIGRATED=true
|
|
||||||
fi || true
|
fi || true
|
||||||
|
|
||||||
if bashio::config.has_value 'openvpn_config'; then
|
if bashio::config.has_value 'openvpn_config'; then
|
||||||
openvpn_config="$(bashio::config "openvpn_config")"
|
openvpn_config="$(bashio::config "openvpn_config")"
|
||||||
if [ -f "$openvpn_config" ]; then
|
if [ -f "$openvpn_config" ]; then
|
||||||
mv "$openvpn_config" /config/openvpn/
|
mv "$openvpn_config" /config/openvpn/
|
||||||
|
bashio::log.yellow "... openvpn file migrated to new location"
|
||||||
fi
|
fi
|
||||||
MIGRATED=true
|
bashio::addon.option "openvpn_config"
|
||||||
fi || true
|
fi || true
|
||||||
|
|
||||||
if [[ "$MIGRATED" == "true" ]]; then
|
if [[ "$MIGRATED" == "true" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user