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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user