Navigation Menu

Skip to content

Commit

Permalink
Backport #13711 to 20.6: passwd and group location error
Browse files Browse the repository at this point in the history
  • Loading branch information
robot-clickhouse committed Aug 14, 2020
1 parent f051e0c commit 86e5b73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debian/clickhouse-server.init
Expand Up @@ -124,11 +124,11 @@ initdb()
CLICKHOUSE_DATADIR_FROM_CONFIG=$CLICKHOUSE_DATADIR
fi

if ! getent group ${CLICKHOUSE_USER} >/dev/null; then
if ! getent passwd ${CLICKHOUSE_USER} >/dev/null; then
echo "Can't chown to non-existing user ${CLICKHOUSE_USER}"
return
fi
if ! getent passwd ${CLICKHOUSE_GROUP} >/dev/null; then
if ! getent group ${CLICKHOUSE_GROUP} >/dev/null; then
echo "Can't chown to non-existing group ${CLICKHOUSE_GROUP}"
return
fi
Expand Down

0 comments on commit 86e5b73

Please sign in to comment.