aboutsummarylogtreecommitdiffstats
path: root/install_zookeeper.sh
blob: d3e45bf2afe395f21d9bd9b862d4bb8c8f144ce2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_install() {
    systemd-sysusers zookeeper.conf
    systemd-tmpfiles --create zookeeper.conf
}

post_upgrade(){
    systemd-sysusers zookeeper.conf
    systemd-tmpfiles --create zookeeper.conf
}

post_remove() {
    if getent passwd zookeeper >/dev/null 2>&1; then
        userdel -f zookeeper
    fi
    if getent group zookeeper >/dev/null 2>&1; then
        groupdelf zookeeper
    fi
}