Implemented TODO [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-08-24 03:09:32 +03:00
parent 1437e5cbe3
commit 10ef8caa3b

View File

@ -82,12 +82,6 @@ Please fix this and reinstall this package." >&2
chmod 775 ${CLICKHOUSE_LOGDIR}
fi
if [ -d ${CLICKHOUSE_LOGDIR} ]; then
# 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 ug+rw ${CLICKHOUSE_LOGDIR}
fi
# Clean old dynamic compilation results
if [ -d "${CLICKHOUSE_DATADIR}/build" ]; then
rm -f ${CLICKHOUSE_DATADIR}/build/*.cpp ${CLICKHOUSE_DATADIR}/build/*.so ||: