Skip to content

Commit 263dc25

Browse files
committed
Move a comment; add a variable
1 parent 8e9300c commit 263dc25

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cmake/pkg/postinst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ CLIO_CONFIG="$CLIO_PREFIX/etc/config.json"
1212
case "$1" in
1313
configure)
1414
if ! id -u "$USER_NAME" >/dev/null 2>&1; then
15+
# Users who should not have a home directory should have their home directory set to /nonexistent
16+
# https://www.debian.org/doc/debian-policy/ch-opersys.html#non-existent-home-directories
1517
useradd --system \
1618
--home-dir /nonexistent \
1719
--no-create-home \
@@ -20,8 +22,7 @@ case "$1" in
2022
--user-group \
2123
${USER_NAME}
2224
fi
23-
# Users who should not have a home directory should have their home directory set to /nonexistent
24-
# https://www.debian.org/doc/debian-policy/ch-opersys.html#non-existent-home-directories
25+
2526
install -d -o "$USER_NAME" -g "$GROUP_NAME" /var/log/clio
2627

2728
if [ -f "$CLIO_CONFIG" ]; then
@@ -30,7 +31,7 @@ case "$1" in
3031

3132
chown -R "$USER_NAME:$GROUP_NAME" "$CLIO_PREFIX"
3233

33-
ln -sf "$CLIO_BIN" /usr/bin/clio_server
34+
ln -sf "$CLIO_BIN" "/usr/bin/${CLIO_EXECUTABLE}"
3435

3536
;;
3637
abort-upgrade|abort-remove|abort-deconfigure)

0 commit comments

Comments
 (0)