summarylogtreecommitdiffstats
path: root/veeam.install
blob: b1e00b56d20b11018bdb28a5512c590d56b3130b (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
post_install() {
    echo "post install"
    groupadd veeam
    systemctl daemon-reload
    systemctl enable veeamservice.service
    systemctl restart veeamservice.service    
    echo "."
}

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

post_upgrade() {
    echo "post upgrade"
    systemctl daemon-reload
    systemctl restart veeamservice.service
    echo "."
}

pre_remove() {
    echo "pre remove"
    systemctl stop veeamservice.service
    systemctl disable veeamservice.service
    rm -rf /var/lib/veeam
    rm -rf /var/log/veeam
    echo "."
}