mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Debian: postinst: fix old log dir permissions
This commit is contained in:
parent
c1edf399dd
commit
d5f2e7f397
5
debian/clickhouse-server-base.postinst
vendored
5
debian/clickhouse-server-base.postinst
vendored
@ -66,6 +66,11 @@ Please fix this and reinstall this package." >&2
|
||||
chmod 1770 ${CLICKHOUSE_LOGDIR}
|
||||
fi
|
||||
|
||||
|
||||
# only for compatibility for old metrika user, remove string after 2017-06-01 :
|
||||
su -s /bin/sh ${CLICKHOUSE_USER} -c "test -w ${CLICKHOUSE_LOGDIR}" || chown -R root:${CLICKHOUSE_GROUP} ${CLICKHOUSE_LOGDIR}; chmod -R 1770 ${CLICKHOUSE_LOGDIR}
|
||||
|
||||
|
||||
# -R only for compatibility for old metrika user, remove -R after 2017-06-01
|
||||
su -s /bin/sh ${CLICKHOUSE_USER} -c "test -w ${CLICKHOUSE_SERVER_ETCDIR}" || chown -R ${CLICKHOUSE_USER}:${CLICKHOUSE_GROUP} ${CLICKHOUSE_SERVER_ETCDIR}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user