blob: 6279315b05a33badff1a9153f526536917771862 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
post_install() {
if ! getent group upmpdcli >/dev/null; then
groupadd --system upmpdcli >/dev/null
fi
if ! getent passwd upmpdcli >/dev/null; then
useradd -g upmpdcli --system upmpdcli -s /bin/false -d / >/dev/null
fi
if [[ ! "$(stat -c '%U:%G' /etc/upmpdcli.conf)" == "upmpdcli:upmpdcli" ]]; then
chown upmpdcli:upmpdcli /etc/upmpdcli.conf
fi
}
post_upgrade() {
post_install $1
echo "WARNING! Name of the systemd-service changed from upmpcli.service to upmpdcli.service."
}
|