mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Debian: Fix mode of default password file
This commit is contained in:
parent
56b2ec8b4a
commit
c183b5455e
2
debian/clickhouse-server.postinst
vendored
2
debian/clickhouse-server.postinst
vendored
@ -135,6 +135,8 @@ Please fix this and reinstall this package." >&2
|
||||
defaultpassword="$RET"
|
||||
if [ -n "$defaultpassword" ]; then
|
||||
echo "<yandex><users><default><password>$defaultpassword</password></default></users></yandex>" > ${CLICKHOUSE_CONFDIR}/users.d/default-password.xml
|
||||
chown ${CLICKHOUSE_USER}:${CLICKHOUSE_GROUP} ${CLICKHOUSE_CONFDIR}/users.d/default-password.xml
|
||||
chmod 600 ${CLICKHOUSE_CONFDIR}/users.d/default-password.xml
|
||||
fi
|
||||
|
||||
# everything went well, so now let's reset the password
|
||||
|
Loading…
Reference in New Issue
Block a user