Debian: Fix mode of default password file

This commit is contained in:
proller 2019-12-07 21:10:00 +03:00
parent 56b2ec8b4a
commit c183b5455e

View File

@ -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