File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ CLIO_CONFIG="$CLIO_PREFIX/etc/config.json"
1212case " $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)
You can’t perform that action at this time.
0 commit comments