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

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

post_install() {
  ln -sf /opt/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
}