blob: b0358df0af3b54b2f1cbf45f94ef3c06b967381a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
post_install() {
getent group mstream &>/dev/null || groupadd -r -g 49 mstream >/dev/null
getent passwd mstream &>/dev/null || useradd -r -u 49 -g mstream -d /var/lib/mstream -s /bin/false -G audio mstream >/dev/null
usr/bin/systemd-tmpfiles --create mstream.conf || true
# fixup permissions
chmod 755 /usr/lib/node_modules \
/usr/lib/node_modules/mstream/node_modules \
/usr/lib/node_modules/mstream/node_modules/.bin
}
post_remove() {
getent passwd mstream &>/dev/null && userdel mstream >/dev/null
getent group mstream &>/dev/null && groupdel mstream >/dev/null
true
}
post_upgrade() {
post_install
}
|