mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
passwd and group location error
There is no problem when the user is the same as the group by default. When the user and group are different, there will be a bug here.
This commit is contained in:
parent
89e9673336
commit
e581b4b15a
4
debian/clickhouse-server.init
vendored
4
debian/clickhouse-server.init
vendored
@ -122,11 +122,11 @@ initdb()
|
|||||||
CLICKHOUSE_DATADIR_FROM_CONFIG=$CLICKHOUSE_DATADIR
|
CLICKHOUSE_DATADIR_FROM_CONFIG=$CLICKHOUSE_DATADIR
|
||||||
fi
|
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}"
|
echo "Can't chown to non-existing user ${CLICKHOUSE_USER}"
|
||||||
return
|
return
|
||||||
fi
|
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}"
|
echo "Can't chown to non-existing group ${CLICKHOUSE_GROUP}"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user