diff options
Diffstat (limited to 'docker/start.sh')
-rwxr-xr-x | docker/start.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docker/start.sh b/docker/start.sh index a54c2a9b..9f9d40e9 100755 --- a/docker/start.sh +++ b/docker/start.sh @@ -38,6 +38,14 @@ create_volume_subfolder() { done } +setids() { + PUID=${PUID:-1000} + PGID=${PGID:-1000} + groupmod -o -g "$PGID" git + usermod -o -u "$PUID" git +} + +setids cleanup create_volume_subfolder |