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