summarylogtreecommitdiffstats
path: root/openvpn-update-systemd-resolved.install
blob: 38900348b817d89252d7233ba5f24e9cc80a3365 (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
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 "    up /usr/bin/update-systemd-resolved"
  echo "    up-restart"
  echo "    down /usr/bin/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 /usr/bin/update-systemd-resolved"
  echo "    down /usr/bin/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
}