blob: 4bdbb306d1d544498f4536667bc0bd05740a1474 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
post_install() {
echo "Before starting the hostd.service, make sure to fill the configuration file /etc/hostd/hostd.yml"
echo "You can do it interactively with the following command : \`sudo -u hostd hostd config\`"
}
## arg 1: the new package version
## arg 2: the old package version
post_upgrade() {
# hostd changed the default configuration location with version 2.0.0.
# This moves existing configuration to the new location.
if [ $(vercmp $2 2.0.0) -lt 0 ]; then
if [ -f /etc/hostd.yml.pacsave ]; then
mv /etc/hostd.yml.pacsave /etc/hostd/hostd.yml
fi
fi
}
|