summarylogtreecommitdiffstats
path: root/cyberghostvpn.install
blob: 82072e87cbbff64d1f877b77e9059589332f52e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all_off="$(tput sgr0)"
bold="${all_off}$(tput bold)"
blue="${bold}$(tput setaf 4)"
yellow="${bold}$(tput setaf 3)"

note() {
    printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n"
}

post_install() {
    ln -sf /usr/local/cyberghost/cyberghostvpn /usr/bin/cyberghostvpn
    note "Enable systemd-resolved: systemctl enable systemd-resolved.service"
    note "Setup your account: cyberghostvpn --setup"
}

post_upgrade() {
    post_install
}

post_remove() {
    unlink /usr/bin/cyberghostvpn
    rm -rf /usr/local/cyberghost
}