docker: Fix reading USER_UID/GID (closes #331)

This commit is contained in:
Elian Doran 2024-08-12 10:01:22 +03:00
parent c4a4acdc39
commit ef20645447
No known key found for this signature in database

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
[[ ! -z "${USER_UID}" ]] && usermod -u ${USER_UID} node || echo "No USER_UID specified, leaving 1000"
[[ ! -z "${USER_GID}" ]] && groupmod -og ${USER_GID} node || echo "No USER_GID specified, leaving 1000"