mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-09 17:15:57 +02:00
Inject mullvad script in start @Blogshot
https://github.com/alexbelgium/hassio-addons/issues/494
This commit is contained in:
@@ -149,9 +149,10 @@ echo ""
|
|||||||
|
|
||||||
# Correct mullvad
|
# Correct mullvad
|
||||||
if [ "$(bashio::config "OPENVPN_PROVIDER")" == "mullvad" ]; then
|
if [ "$(bashio::config "OPENVPN_PROVIDER")" == "mullvad" ]; then
|
||||||
# bashio::log.info "Removing IPv6 from mullvad"
|
bashio::log.info "Mullvad selected, copying script for IPv6 disabling"
|
||||||
chown "$PUID:$PGID" /etc/openvpn/mullvad/configure-openvpn.sh
|
chown "$PUID:$PGID" /opt/modify-mullvad.sh
|
||||||
chmod +x /etc/openvpn/mullvad/configure-openvpn.sh
|
chmod +x /opt/modify-mullvad.sh
|
||||||
|
sed -i '$i/opt/modify-mullvad.sh' /etc/openvpn/start.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bashio::log.info "Starting app"
|
bashio::log.info "Starting app"
|
||||||
|
|||||||
Reference in New Issue
Block a user