File debian.kvmd.postinst of Package kvmd
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
case "$1" in
configure|reconfigure)
systemd-sysusers /usr/lib/sysusers.d/kvmd.conf
dpkg-statoverride --list --quiet /etc/kvmd/htpasswd >/dev/null ||
dpkg-statoverride --force-all --quiet --update --add kvmd kvmd 0600 /etc/kvmd/htpasswd
dpkg-statoverride --list --quiet /etc/kvmd/ipmipasswd >/dev/null ||
dpkg-statoverride --force-all --quiet --update --add kvmd-ipmi kvmd-ipmi 0600 /etc/kvmd/ipmipasswd
dpkg-statoverride --list --quiet /etc/kvmd/vncpasswd >/dev/null ||
dpkg-statoverride --force-all --quiet --update --add kvmd-vnc kvmd-vnc 0600 /etc/kvmd/vncpasswd
dpkg-statoverride --list --quiet /var/lib/kvmd/msd >/dev/null || {
mount -o rw,remount /var/lib/kvmd/msd 2>/dev/null || :
dpkg-statoverride --force-all --quiet --update --add kvmd root 0755 /var/lib/kvmd/msd
}
;;
*)
;;
esac
#DEBHELPER#
exit 0