mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-21 23:26:37 +02:00
Update entrypoint.sh (#579)
* Included the flag "-m" to create the home directory when creating the user.
This commit is contained in:
parent
ab7e321726
commit
54f0ccdca6
|
@ -16,7 +16,7 @@ fi
|
|||
# Create new user using target UID
|
||||
if ! oduser="$(getent passwd $ONEDRIVE_UID)"; then
|
||||
oduser='onedrive'
|
||||
useradd "${oduser}" -u $ONEDRIVE_UID -g $ONEDRIVE_GID
|
||||
useradd -m "${oduser}" -u $ONEDRIVE_UID -g $ONEDRIVE_GID
|
||||
else
|
||||
oduser="${oduser%%:*}"
|
||||
usermod -g "${odgroup}" "${oduser}"
|
||||
|
|
Loading…
Reference in a new issue