blob: 89add2e0a1c68eb60a51ad60168f9ba3ec184448 (
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
}
|