blob: ec36f0e1adbaf5a9af4f3ea4e8f34033befe85f9 (
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
25
26
27
28
29
30
31
|
post_install() {
echo ""
echo "##########"
echo "#"
#TODO echo "# Remember to configure the server via its environment-variables under /etc/earthwalker.env"
echo "# After installing, start/enable the server via 'systemctl enable earthwalker.service --now'"
echo "#"
echo "##########"
echo ""
}
post_upgrade() {
echo "# Remember to restart the earthwalker unit via 'systemctl restart earthwalker.service', if neccessary."
}
pre_remove() {
# Stop service
systemctl --quiet --no-reload disable --now earthwalker.service
}
post_remove() {
echo ""
echo "##########"
echo "#"
echo "# Remember to remove the user/group earthwalker, if neccessary."
echo "# All server data in /var/lib/earthwalker was NOT deleted!"
echo "#"
echo "##########"
echo ""
}
|