Update OVPN configs (plus a small bonus bugfix) (#1265)

* Fix error message when $PUID is set and $PGID isn't set.

* Update hostnames for OVPN

Co-authored-by: Marc Runkel <marc.runkel@plusforta.de>
This commit is contained in:
Marc Runkel
2020-06-27 12:28:03 +02:00
committed by GitHub
parent ac5bbc7648
commit dbe3419dfa
4 changed files with 7 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
client
dev tun
proto udp
remote pool.prd.de.ovpn.se 1194
remote pool.prd.de.ovpn.se 1195
remote pool-1.prd.de.ovpn.com 1194
remote pool-1.prd.de.ovpn.com 1195
remote-random
remote-cert-tls server
cipher AES-256-CBC

View File

@@ -1,8 +1,8 @@
client
dev tun
proto udp
remote pool.prd.se.ovpn.se 1194
remote pool.prd.se.ovpn.se 1195
remote pool-1.prd.se.ovpn.se 1194
remote pool-1.prd.se.ovpn.se 1195
remote-random
remote-cert-tls server
cipher AES-256-CBC

View File

@@ -1,8 +1,8 @@
client
dev tun
proto udp
remote pool.prd.us.ovpn.com 1194 # resolves to multiple VPN servers in location
remote pool.prd.us.ovpn.com 1195 # resolves to multiple VPN servers in location
remote pool-1.prd.us.ovpn.com 1194 # resolves to multiple VPN servers in location
remote pool-1.prd.us.ovpn.com 1195 # resolves to multiple VPN servers in location
remote-random
remote-cert-tls server
cipher AES-256-CBC

View File

@@ -9,7 +9,7 @@ if [ -n "$PUID" ] && [ ! "$(id -u root)" -eq "$PUID" ]; then
if [ ! "$(id -u ${RUN_AS})" -eq "$PUID" ]; then
usermod -o -u "$PUID" ${RUN_AS};
fi
if [ ! "$(id -g ${RUN_AS})" -eq "$PGID" ]; then
if [ -n "$PGID" ] && [ ! "$(id -g ${RUN_AS})" -eq "$PGID" ]; then
groupmod -o -g "$PGID" ${RUN_AS};
fi