summarylogtreecommitdiffstats
path: root/awsvpnclient.install
blob: ca2d27b93eea62a605f2c5b258ee5331ae1b37a9 (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
# https://gitlab.archlinux.org/pacman/pacman/raw/master/proto/proto.install
service=awsvpnclient

# pre_install() {}

post_install() {
  systemctl daemon-reload
  echo "The AWS VPN Client requires the ${service}.service and systemd-resolved.service to be running!"
  echo "Please enable ${service} with 'sudo systemctl enable ${service} && sudo systemctl start ${service}'"
}

# pre_upgrade() {}

post_upgrade() {
  systemctl daemon-reload
  echo "You may need to restart the ${service} service with 'sudo systemctl restart ${service}'"
  echo "Restarting the service ${service} will interrupt your current connections!"
}

pre_remove() {
	systemctl stop awsvpnclient
	systemctl disable awsvpnclient
}

# post_remove() {}