From bd919669dfdb88b9451853d25342b318450f83bc Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Wed, 15 Nov 2017 11:51:54 +0100 Subject: [PATCH] Correction --- files/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/entrypoint.sh b/files/entrypoint.sh index 37216e7..99e5790 100755 --- a/files/entrypoint.sh +++ b/files/entrypoint.sh @@ -16,7 +16,7 @@ if [ -f /firstrun ]; then groupadd -r -g "${BACKUPPC_GUID:-1000}" backuppc BACKUPPC_GROUPNAME="backuppc" fi - BACKUPPC_USERNAME=`getent group "${BACKUPPC_UUID:-1000}" | cut -d: -f1` + BACKUPPC_USERNAME=`getent passwd "${BACKUPPC_UUID:-1000}" | cut -d: -f1` if [ -z "$BACKUPPC_USERNAME" ]; then useradd -r -d /home/backuppc -g "${BACKUPPC_GUID:-1000}" -u ${BACKUPPC_UUID:-1000} -M -N backuppc BACKUPPC_USERNAME="backuppc"