summarylogtreecommitdiffstats
path: root/veeam.install
blob: 95fee5fea9a8df2eeb5b8634bebee92f9235bc24 (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
post_install() {
    echo "post install"
    groupadd veeam
    _curr_dir=$(pwd)
    cd /usr/lib
    #sudo ln -s libncursesw.so.6 libncursesw.so.5
    #sudo ln -s libpanelw.so.6 libpanel.so.5
    cd $_curr_dir
    systemctl enable veeamservice.service
    systemctl start veeamservice.service    
    echo "."
}

pre_upgrade() {
    echo "pre update"
    echo "."
}

post_upgrade() {
    echo "port updrade"
    echo "."
}

pre_remove() {
    echo "pre remove"
    systemctl stop veeamservice.service
    systemctl disable veeamservice.service
    #rm -f /usr/lib/libncursesw.so.5 /usr/lib/libpanel.so.5
    rm -rf /var/lib/veeam
    rm -rf /var/log/veeam
    echo "."
}