mirror of
https://github.com/adferrand/docker-backuppc.git
synced 2023-11-05 04:40:26 +01:00
Correction
This commit is contained in:
parent
25e1ac4997
commit
bd919669df
@ -16,7 +16,7 @@ if [ -f /firstrun ]; then
|
|||||||
groupadd -r -g "${BACKUPPC_GUID:-1000}" backuppc
|
groupadd -r -g "${BACKUPPC_GUID:-1000}" backuppc
|
||||||
BACKUPPC_GROUPNAME="backuppc"
|
BACKUPPC_GROUPNAME="backuppc"
|
||||||
fi
|
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
|
if [ -z "$BACKUPPC_USERNAME" ]; then
|
||||||
useradd -r -d /home/backuppc -g "${BACKUPPC_GUID:-1000}" -u ${BACKUPPC_UUID:-1000} -M -N backuppc
|
useradd -r -d /home/backuppc -g "${BACKUPPC_GUID:-1000}" -u ${BACKUPPC_UUID:-1000} -M -N backuppc
|
||||||
BACKUPPC_USERNAME="backuppc"
|
BACKUPPC_USERNAME="backuppc"
|
||||||
|
Loading…
Reference in New Issue
Block a user