clickhouse-lts-223/clickhouse-lts-218.install

10 lines
337 B
Plaintext
Raw Normal View History

2020-08-20 17:21:08 +09:00
post_install() {
groupadd -r clickhouse &>/dev/null
useradd -r -g clickhouse -d /var/lib/clickhouse -s /bin/false clickhouse &>/dev/null
mkdir -p /var/lib/clickhouse/
chmod 0750 /var/lib/clickhouse
mkdir -p /var/log/clickhouse-server
chown clickhouse:clickhouse -R /var/lib/clickhouse /var/log/clickhouse-server
ldconfig
}