Github bot : script beautyshied

This commit is contained in:
github-actions
2022-06-19 00:12:57 +00:00
parent 97769ead97
commit 23aeb54bd0
2 changed files with 9 additions and 9 deletions

View File

@@ -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

View File

@@ -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