blob: ceee0a0d9cf31c5750bbf36b3203e826288d9d13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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/data/default /var/lib/clickhouse/metadata/default /var/lib/clickhouse/tmp
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
}
post_upgrade() {
ldconfig
}
post_remove() {
ldconfig
}
|