aboutsummarylogtreecommitdiffstats
path: root/avast-fss.install
blob: 50ff3bc1027a025bca82211e7d9c90d9b53b9326 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
#pre_install(){
#    #echo $FUNCNAME
#
#    # exec the debian package postinst
#}

post_install(){
    #echo $FUNCNAME

    # exec the debian package postinst
    /bin/bash /usr/share/avast-fss/pkgscripts/preinst install
    echo "errors regarding update-rc.d can be safely ignored ;)"
    /bin/bash /usr/share/avast-fss/pkgscripts/postinst configure
}

pre_upgrade(){
    #echo $FUNCNAME

    # exec the debian package preinst
    /bin/bash /usr/share/avast-fss/pkgscripts/preinst upgrade
    echo "errors regarding update-rc.d can be safely ignored ;)"
}

post_upgrade(){
    #echo $FUNCNAME

    # exec the debian package postinst
    /bin/bash /usr/share/avast-fss/pkgscripts/postinst configure
    systemctl daemon-reload
}

pre_remove(){
    #echo $FUNCNAME

    # exec the debian package rm scripts (post_remove is too late)
    /bin/bash /usr/share/avast-fss/pkgscripts/prerm remove
    /bin/bash /usr/share/avast-fss/pkgscripts/postrm remove
}

#post_remove(){
#    #echo $FUNCNAME
#
#    # exec the debian package postinst
#}