summarylogtreecommitdiffstats
path: root/tinc-pre.install
blob: dece9caeaf6222223918b5017f7c9f115dfea3e0 (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
28
infodir=/usr/share/info
file=tinc.info

post_install() {
  [[ -x /usr/bin/install-info ]] || return 0
  install-info $infodir/$file.gz $infodir/dir
}

post_upgrade() {
  post_install $1
  echo <<EOF
Starting from 1.1pre12, tinc ships its own systemd unit files, which are
different from previous ones:

1. Unit file name changes from tincd(@) to tinc(@)
2. Network without network name is not supported anymore
3. tinc.service now serves to start all tinc@.service

Please reload systemd and do appropriate configuration according to these
changes.
EOF
}

pre_remove() {
  [[ -x /usr/bin/install-info ]] || return 0
  install-info --delete $infodir/$file.gz $infodir/dir
}