blob: 7b9db85a0e69f41062666a916e6cd084bdff42c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
post_install() {
post_upgrade
echo "==> Generating KVMD certificate ..."
kvmd-gencert
}
post_upgrade() {
echo "==> Configuring KVMD user and groups ..."
id kvmd &>/dev/null || useradd -r -c "The main Pi-KVM daemon" -s /sbin/nologin kvmd
for group in gpio uucp systemd-journal; do
(groupmems -l -g "$group" | grep kvmd >/dev/null) || groupmems -g "$group" -a kvmd
done
chown root:kvmd \
/usr/share/kvmd/configs.default/kvmd/htpasswd \
/etc/kvmd/htpasswd
}
post_remove() {
userdel kvmd &>/dev/null
}
|