summarylogtreecommitdiffstats
path: root/nzbget.install
blob: c24bf8593702c6c5229a1c7d22d59e4915e72ec8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
    getent group nzbget &>/dev/null || groupadd -r nzbget >/dev/null
    getent passwd nzbget &>/dev/null || useradd -r -g nzbget -d /var/lib/nzbget -s /bin/false -c nzbget nzbget >/dev/null
    chown -R nzbget:nzbget /var/lib/nzbget
}

post_upgrade() {
    post_install
}

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