mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 02:11:01 +01:00
Github bot : script beautyshied
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
|
||||
# Data remanence for /teamspeak/save
|
||||
if [ -d /teamspeak/save ]; then
|
||||
cp -rn /teamspeak/save/* /data
|
||||
rm -r /teamspeak/save
|
||||
cp -rn /teamspeak/save/* /data
|
||||
rm -r /teamspeak/save
|
||||
fi
|
||||
mkdir -p /teamspeak/save
|
||||
ln -sf /data /teamspeak/save
|
||||
|
||||
@@ -17,11 +17,11 @@ echo ""
|
||||
|
||||
if bashio::config.true "OPENVPN_CUSTOM_PROVIDER"; then
|
||||
|
||||
OVPNLOCATION="$(bashio::config "OPENVPN_CUSTOM_PROVIDER_OVPN_LOCATION")"
|
||||
OPENVPN_PROVIDER="${OVPNLOCATION##*/}"
|
||||
OPENVPN_PROVIDER="${OPENVPN_PROVIDER%.*}"
|
||||
OPENVPN_PROVIDER="${OPENVPN_PROVIDER,,}"
|
||||
bashio::log.info "Custom openvpn provider selected"
|
||||
OVPNLOCATION="$(bashio::config "OPENVPN_CUSTOM_PROVIDER_OVPN_LOCATION")"
|
||||
OPENVPN_PROVIDER="${OVPNLOCATION##*/}"
|
||||
OPENVPN_PROVIDER="${OPENVPN_PROVIDER%.*}"
|
||||
OPENVPN_PROVIDER="${OPENVPN_PROVIDER,,}"
|
||||
bashio::log.info "Custom openvpn provider selected"
|
||||
|
||||
# Check that ovpn file exists
|
||||
if [ ! -f "$(bashio::config "OPENVPN_CUSTOM_PROVIDER_OVPN_LOCATION")" ]; then
|
||||
@@ -41,7 +41,7 @@ bashio::log.info "Custom openvpn provider selected"
|
||||
|
||||
else
|
||||
|
||||
bashio::log.info "Custom openvpn provider not selected, the provider $OPENVPN_PROVIDER will be used"
|
||||
bashio::log.info "Custom openvpn provider not selected, the provider $OPENVPN_PROVIDER will be used"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user