Comment out plex ports on installation #62

Merged
rogs merged 7 commits from bugfix/27/comment-plex-ports into master 2023-11-12 10:45:45 -03:00
2 changed files with 6 additions and 6 deletions
Showing only changes of commit cab2a2aab3 - Show all commits

View File

@ -380,8 +380,8 @@ sed -i -e "s|<your_PUID>|$puid|g" "$env_file" \
if [ "$media_service" == "plex" ]; then
sed -i -e "s|#network_mode: host # plex|network_mode: host # plex|g" "$filename" \
-e "s|ports: # plex|#ports: # plex|g" $filename \
-e "s|- 8096:8096 # plex|#- 8096:8096 # plex|g" $filename
-e "s|ports: # plex|#ports: # plex|g" "$filename" \
-e "s|- 8096:8096 # plex|#- 8096:8096 # plex|g" "$filename" \
fi
sed -i -e "s|<install_directory>|$install_directory|g" "$env_file"
@ -392,7 +392,7 @@ if [ "$setup_vpn" == "y" ]; then
-e "s|<vpn_password>|$vpn_password|g" "$env_file" \
-e "s|<vpn_enabled>|$setup_vpn|g" "$env_file" \
-e "s|#network_mode: \"service:gluetun\"|network_mode: \"service:gluetun\"|g" "$filename" \
-e "s|ports: # qbittorrent|#port: # qbittorrent|g" "$filename" \
-e "s|ports: # qbittorrent|#ports: # qbittorrent|g" "$filename" \
-e "s|- 8080:8080 # qbittorrent|#- 8080:8080 # qbittorrent|g" "$filename" \
-e "s|#- 8080:8080/tcp # gluetun|- 8080:8080/tcp # gluetun|g" "$filename"
fi

View File

@ -223,8 +223,8 @@ sed -i -e "s|<your_PUID>|$puid|g" "$env_file" \
if [ "$media_service" == "plex" ]; then
sed -i -e "s|#network_mode: host # plex|network_mode: host # plex|g" "$filename" \
-e "s|ports: # plex|#ports: # plex|g" $filename \
-e "s|- 8096:8096 # plex|#- 8096:8096 # plex|g" $filename
-e "s|ports: # plex|#ports: # plex|g" "$filename" \
-e "s|- 8096:8096 # plex|#- 8096:8096 # plex|g" "$filename" \
fi
sed -i -e "s|<install_directory>|$install_directory|g" "$env_file"
@ -235,7 +235,7 @@ if [ "$setup_vpn" == "y" ]; then
-e "s|<vpn_password>|$vpn_password|g" "$env_file" \
-e "s|<vpn_enabled>|$setup_vpn|g" "$env_file" \
-e "s|#network_mode: \"service:gluetun\"|network_mode: \"service:gluetun\"|g" "$filename" \
-e "s|ports: # qbittorrent|#port: # qbittorrent|g" "$filename" \
-e "s|ports: # qbittorrent|#ports: # qbittorrent|g" "$filename" \
-e "s|- 8080:8080 # qbittorrent|#- 8080:8080 # qbittorrent|g" "$filename" \
-e "s|#- 8080:8080/tcp # gluetun|- 8080:8080/tcp # gluetun|g" "$filename"
fi