blob: 18e371055e857d36068351a45bcee80e1cf49328 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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
}
post_remove() {
if getent passwd clickhouse &>/dev/null; then
userdel clickhouse
fi
if getent group clickhouse &>/dev/null; then
groupdel clickhouse
fi
}
|