summaryrefslogtreecommitdiff
path: root/yams
diff options
context:
space:
mode:
Diffstat (limited to 'yams')
-rwxr-xr-xyams7
1 files changed, 7 insertions, 0 deletions
diff --git a/yams b/yams
index d198eba..20ef3c2 100755
--- a/yams
+++ b/yams
@@ -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