]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Read all members of previous cacheinfo file
authorRuss Allbery <rra@debian.org>
Tue, 4 May 2010 21:51:37 +0000 (14:51 -0700)
committerRuss Allbery <rra@debian.org>
Tue, 4 May 2010 21:51:37 +0000 (14:51 -0700)
If we don't have three destination variables, the cachedir gets the
cache size appended to it.  Add a cachesize variable whose contents
we then ignore.

debian/openafs-client.postinst

index a12673238098faa5e885c0ed3dc590fd7b4f384e..ee44d5388fc46b0d1952bf7474c0d7fdaba84528 100644 (file)
@@ -69,7 +69,7 @@ if [ "$1" = configure ] || [ "$1" = reconfigure ] ; then
     mountpoint=/afs
     cachedir=/var/cache/openafs
     if [ -r /etc/openafs/cacheinfo ] ; then
-        IFS=: read mountpoint cachedir < /etc/openafs/cacheinfo
+        IFS=: read mountpoint cachedir cachesize < /etc/openafs/cacheinfo
     fi
     db_get openafs-client/cachesize
     echo "${mountpoint}:${cachedir}:${RET}" > /etc/openafs/cacheinfo