Skip to content

Commit 3afe53e

Browse files
committed
Refactor user creation command for improved readability in serversideup-create-unprivileged-user script
1 parent 6f34cda commit 3afe53e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/rootfs/usr/local/bin/serversideup-create-unprivileged-user

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ if [ -f /etc/alpine-release ]; then
2929
else
3030
# Debian
3131
addgroup --gid "${PGID}" "${username}" && \
32-
adduser --uid "${PUID}" --gid "${PGID}" --home "/home/${username}" --shell /bin/bash --disabled-password --gecos '' "${username}" && \
33-
# Ensure the account is not locked
34-
passwd -u "${username}"
32+
adduser --uid "${PUID}" \
33+
--gid "${PGID}" \
34+
--home "/home/${username}" \
35+
--shell /bin/bash \
36+
--disabled-password \
37+
--gecos '' \
38+
"${username}"
3539
fi

0 commit comments

Comments
 (0)