blob: e055cabc9195059e9cde544a8c503044afcf4175 (
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
|
## $1: the new package version
post_install() {
braise status | grep -q "enabled" || (
echo -e "To enable ServiceWall, run a\n\t# systemctl enable servicewall";
)
echo -e "If you installed python-argcomplete, you should run\n\t# activate-global-python-argcomplete"
echo "You should set XTABLES_LIBDIR inside /etc/environment to relevant dir."
}
## $1: the new package version
## $2: the old package version
post_upgrade() {
# If ServiceWall is not disabled :
braise status | grep -q "disabled" || (
echo "reloading ServiceWall";
braise reload;
)
echo "You should set XTABLES_LIBDIR inside /etc/environment to relevant dir."
}
## arg 1: the old package version
pre_remove() {
echo "disabling ServiceWall";
braise disable;
}
|