summarylogtreecommitdiffstats
path: root/openafs.install
blob: ccef13a78034ee9651c4324b348a06c0a9fba322 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
create_afs() {
  systemd-tmpfiles --create openafs.conf
}

output() {
  while IFS= read line; do
    echo "-- $line"
  done
}

post_install() {
  create_afs

  output << EOF
In order to use the openafs-client you have to install the openafs kernel
module (openafs-modules or openafs-modules-dkms).

You may want to edit /etc/openafs/ThisCell to be your current cell.

Afterwards you can enable and start the openafs-client:
  systemctl enable openafs-client.service
  systemctl start openafs-client.service
EOF
}

post_upgrade() {
  create_afs

  if [ $(vercmp "$2" "1.6.11.1-1") -lt 0 ]; then
    output << EOF
Please note the following packaging changes:

 * The kaserver / kauth suite is no longer installed. It is obsolete for a
   long time and hopefully not needed anymore. Otherwise please leave a
   comment in the AUR.
   See: http://www.openafs.org/pages/no-more-des.html

 * The server binaries were moved back to /usr/lib/openafs. If you use the
   server you will need to modify your bos config. If you only use the client
   you can safely ignore this.
EOF
  fi
}

post_remove() {
    output << EOF
The following directories have not been removed. You can manually remove them
after making sure that openafs is not running anymore:
  /afs
  /var/cache/openafs
EOF
}