summarylogtreecommitdiffstats
path: root/vpn-unlimited.install
blob: 4467f9fc271dcce91924b8be67b4e7c60160314e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
post_install() {
  echo "Enabling and starting vpn-unlimited-daemon.service ..."
  systemctl daemon-reload
  systemctl enable vpn-unlimited-daemon.service
  systemctl start vpn-unlimited-daemon.service
}

post_upgrade() {
  echo "Restarting vpn-unlimited-daemon.service ..."
  systemctl daemon-reload
  systemctl restart vpn-unlimited-daemon.service
}

pre_remove() {
  echo "Stopping and disabling vpn-unlimited-daemon.service ..."
  systemctl stop vpn-unlimited-daemon.service
  systemctl disable vpn-unlimited-daemon.service
}

post_remove() {
  echo "Running systemctl daemon-reload ..."
  systemctl daemon-reload
}