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

@@ -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