summarylogtreecommitdiffstats
path: root/openvpn-update-systemd-resolved.install
blob: 331fc92923b0bd4837e632007b19a893cbff32ea (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
post_install() {
  echo
  echo "To complete the installation, please add this script to your OpenVPN"
  echo "settings for each of the VPNs you wish it to manage the DNS for:"
  echo "    script-security 2"
  echo "    setenv PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  echo "    up /etc/openvpn/scripts/update-systemd-resolved"
  echo "    up-restart"
  echo "    down /etc/openvpn/scripts/update-systemd-resolved"
  echo "    down-pre"
  echo
}

post_upgrade() {
  post_install
  echo
  echo "The path to the script has changed. Please ensure you update all your"
  echo "configuration files to match this:"
  echo "    up /etc/openvpn/scripts/update-systemd-resolved"
  echo "    down /etc/openvpn/scripts/update-systemd-resolved"
  echo
  echo "If you are using persist-tun and ping-restart, you should add up-restart"
  echo "to your configuration so that update-systemd-resolved is called when"
  echo "there is a partial restart of the connection. Otherwise, or your DNS"
  echo "configuration may not be restored."
  echo
}