summarylogtreecommitdiffstats
path: root/twister-html-git.install
blob: 8d3099fc8ffe73bc8afaaa1265c37d17f2fc446d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
post_install() {
    getent group twister &>/dev/null || groupadd -r -g 66 twister >/dev/null
    getent passwd twister &>/dev/null || useradd -r -u 66 -g twister -d /var/lib/twister -s /bin/false twister >/dev/null
    systemd-tmpfiles --create twister.conf

    echo ">>> to start: systemctl start twister "
    echo ">>> and open http://127.0.0.1:28332/home.html"
}

post_upgrade() {
    post_install
}

post_remove() {
    getent passwd twister &>/dev/null && userdel twister >/dev/null
    getent group twister &>/dev/null && groupdel twister >/dev/null
    true
}