blob: 891b049b2f4602e1bfe15ddac7ac341c4e61ada9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
post_install() {
getent group showcase >/dev/null || groupadd --system showcase &>/dev/null
getent passwd showcase >/dev/null || useradd --system -g showcase -G video,power,network -m -d /var/lib/showcase -s /bin/false showcase &>/dev/null
}
post_upgrade() {
post_install $1
}
post_remove() {
getent passwd showcase > /dev/null && userdel showcase
}
|