Inject mullvad script in start @Blogshot

https://github.com/alexbelgium/hassio-addons/issues/494
This commit is contained in:
Alexandre
2022-11-30 06:38:58 +01:00
committed by GitHub
parent 02db1ce48c
commit 11cc43cb91

View File

@@ -149,9 +149,10 @@ echo ""
# Correct mullvad
if [ "$(bashio::config "OPENVPN_PROVIDER")" == "mullvad" ]; then
# bashio::log.info "Removing IPv6 from mullvad"
chown "$PUID:$PGID" /etc/openvpn/mullvad/configure-openvpn.sh
chmod +x /etc/openvpn/mullvad/configure-openvpn.sh
bashio::log.info "Mullvad selected, copying script for IPv6 disabling"
chown "$PUID:$PGID" /opt/modify-mullvad.sh
chmod +x /opt/modify-mullvad.sh
sed -i '$i/opt/modify-mullvad.sh' /etc/openvpn/start.sh
fi
bashio::log.info "Starting app"