summarylogtreecommitdiffstats
path: root/servicewall.install
blob: 30c28d9d81b246d50c3ffafee010a13f1c46d811 (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
## $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"
}

## $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;
    )
}

## arg 1:  the old package version
pre_remove() {
    echo "disabling ServiceWall";
    braise disable;
}