blob: cb07df23f9b5b637f6aca6368557d31003657cd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
post_install() {
# cut off $pkgrel part
pkgver="${1%-*}"
# force _immediate_ creation of geoserver user
systemd-sysusers /usr/lib/sysusers.d/signalk-server.conf
# adjust permissions
chown -R signalk:signalk /usr/lib/signalk-server
chown -R signalk:signalk /etc/signalk-server
chown -R signalk:signalk /var/lib/signalk-server
# inform user about new systemd service
cat <<EOF
==> Enable and/or start the \`signalk-server.service\` systemd service.
EOF
}
post_upgrade() {
post_install $1
}
|