Upgraded YAMS version to v2.0 #60
@ -6,6 +6,7 @@ INSTALL_LOCATION=<install_location>
|
|||||||
MEDIA_SERVICE=<media_service>
|
MEDIA_SERVICE=<media_service>
|
||||||
|
|
||||||
# VPN configuration
|
# VPN configuration
|
||||||
|
VPN_ENABLED=<vpn_enabled>
|
||||||
VPN_SERVICE=<vpn_service>
|
VPN_SERVICE=<vpn_service>
|
||||||
VPN_USER=<vpn_user>
|
VPN_USER=<vpn_user>
|
||||||
VPN_PASSWORD=<vpn_password>
|
VPN_PASSWORD=<vpn_password>
|
||||||
|
1
docs.org
1
docs.org
@ -345,6 +345,7 @@ if [ "$setup_vpn" == "y" ]; then
|
|||||||
sed -i -e "s;<vpn_service>;$vpn_service;g" "$env_file"
|
sed -i -e "s;<vpn_service>;$vpn_service;g" "$env_file"
|
||||||
sed -i -e "s;<vpn_user>;$vpn_user;g" "$env_file"
|
sed -i -e "s;<vpn_user>;$vpn_user;g" "$env_file"
|
||||||
sed -i -e "s;<vpn_password>;$vpn_password;g" "$env_file"
|
sed -i -e "s;<vpn_password>;$vpn_password;g" "$env_file"
|
||||||
|
sed -i -e "s;<vpn_enabled>;$setup_vpn;g" "$env_file"
|
||||||
sed -i -e "s;#network_mode: \"service:gluetun\";network_mode: \"service:gluetun\";g" "$filename"
|
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;ports: # qbittorrent;#port: # qbittorrent;g" "$filename"
|
||||||
sed -i -e "s;- 8080:8080 # qbittorrent;#- 8080:8080 # qbittorrent;g" "$filename"
|
sed -i -e "s;- 8080:8080 # qbittorrent;#- 8080:8080 # qbittorrent;g" "$filename"
|
||||||
|
@ -203,6 +203,7 @@ if [ "$setup_vpn" == "y" ]; then
|
|||||||
sed -i -e "s;<vpn_service>;$vpn_service;g" "$env_file"
|
sed -i -e "s;<vpn_service>;$vpn_service;g" "$env_file"
|
||||||
sed -i -e "s;<vpn_user>;$vpn_user;g" "$env_file"
|
sed -i -e "s;<vpn_user>;$vpn_user;g" "$env_file"
|
||||||
sed -i -e "s;<vpn_password>;$vpn_password;g" "$env_file"
|
sed -i -e "s;<vpn_password>;$vpn_password;g" "$env_file"
|
||||||
|
sed -i -e "s;<vpn_enabled>;$setup_vpn;g" "$env_file"
|
||||||
sed -i -e "s;#network_mode: \"service:gluetun\";network_mode: \"service:gluetun\";g" "$filename"
|
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;ports: # qbittorrent;#port: # qbittorrent;g" "$filename"
|
||||||
sed -i -e "s;- 8080:8080 # qbittorrent;#- 8080:8080 # qbittorrent;g" "$filename"
|
sed -i -e "s;- 8080:8080 # qbittorrent;#- 8080:8080 # qbittorrent;g" "$filename"
|
||||||
|
7
yams
7
yams
@ -100,4 +100,11 @@ if [ "$option" == "update" ]; then
|
|||||||
if [ "$MEDIA_SERVICE" == "plex" ]; then
|
if [ "$MEDIA_SERVICE" == "plex" ]; then
|
||||||
sed -i -e "s;#network_mode: host # plex;network_mode: host # plex;g" "$filename"
|
sed -i -e "s;#network_mode: host # plex;network_mode: host # plex;g" "$filename"
|
||||||
fi
|
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
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user