summarylogtreecommitdiffstats
path: root/etcd.install
blob: b6945d2f4e976044faa2ef5003d8c5c357c3a36b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
ETCD_DATA_DIR="/var/lib/etcd"

post_install() {
    mkdir -p "${ETCD_DATA_DIR}"

    # create an etcd user
    id -u etcd &>/dev/null || useradd -r -M -U -d /dev/null -s /bin/nologin etcd

    chown -R etcd:etcd "${ETCD_DATA_DIR}"
}

post_upgrade() {
    post_install
}