summarylogtreecommitdiffstats
path: root/mullvad-vpn-beta.install
blob: 49a8146b3ad244ded031fda1b14f90d9b095dbff (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() {
    systemctl enable --now mullvad-daemon

    echo -------------------------------------------------------------
    echo 'mullvad-daemon has been enabled & started.'
    echo -------------------------------------------------------------
}

post_upgrade() {
    systemctl daemon-reload
    systemctl restart mullvad-daemon

    echo -------------------------------------------------------------
    echo 'mullvad-daemon has been restarted.'
    echo -------------------------------------------------------------
}

pre_remove() {
    systemctl disable --now mullvad-daemon
}

post_remove() {
    # Remove logs & cache
    rm -rf /var/log/mullvad-vpn/
    rm -rf /var/cache/mullvad-vpn/

    # Remove config. See backup()
    #rm -rf /etc/mullvad-vpn
}