diff options
Diffstat (limited to 'yams')
-rwxr-xr-x | yams | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -100,4 +100,11 @@ if [ "$option" == "update" ]; then if [ "$MEDIA_SERVICE" == "plex" ]; then sed -i -e "s;#network_mode: host # plex;network_mode: host # plex;g" "$filename" fi + + if [ "$VPN_ENABLED" == "y" ]; then + sed -i -e "s;#network_mode: \"service:gluetun\";network_mode: \"service:gluetun\";g" "$filename" + sed -i -e "s;ports: # qbittorrent;#port: # qbittorrent;g" "$filename" + sed -i -e "s;- 8080:8080 # qbittorrent;#- 8080:8080 # qbittorrent;g" "$filename" + sed -i -e "s;#- 8080:8080/tcp # gluetun;- 8080:8080/tcp # gluetun;g" "$filename" + fi fi |