Skip to content

Commit ddeec83

Browse files
authored
Update postinst
1 parent 263dc25 commit ddeec83

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

cmake/pkg/postinst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ case "$1" in
1414
if ! id -u "$USER_NAME" >/dev/null 2>&1; then
1515
# Users who should not have a home directory should have their home directory set to /nonexistent
1616
# https://www.debian.org/doc/debian-policy/ch-opersys.html#non-existent-home-directories
17-
useradd --system \
18-
--home-dir /nonexistent \
19-
--no-create-home \
20-
--shell /usr/sbin/nologin \
21-
--comment "system user for ${CLIO_EXECUTABLE}" \
22-
--user-group \
23-
${USER_NAME}
17+
useradd \
18+
--system \
19+
--home-dir /nonexistent \
20+
--no-create-home \
21+
--shell /usr/sbin/nologin \
22+
--comment "system user for ${CLIO_EXECUTABLE}" \
23+
--user-group \
24+
${USER_NAME}
2425
fi
2526

2627
install -d -o "$USER_NAME" -g "$GROUP_NAME" /var/log/clio

0 commit comments

Comments
 (0)