summarylogtreecommitdiffstats
path: root/servicewall.install
blob: ac8e29d57ec4d8b5230ec383baf5a139f919f5ed (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
## $1:  the new package version
post_install() {
    braise status | grep -q "enabled" || (
        echo "To enable ServiceWall, run a\n\t# braise enable";
        echo "You might also want to systemctl enable ulog.socket";
    )
    echo "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;
}