From: Russ Allbery Date: Tue, 4 May 2010 21:51:37 +0000 (-0700) Subject: Read all members of previous cacheinfo file X-Git-Tag: debian/1.5.74.1-1~8 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=b63890714f827146ebea4f08f135c564693245db;p=packages%2Fo%2Fopenafs.git Read all members of previous cacheinfo file 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. --- diff --git a/debian/openafs-client.postinst b/debian/openafs-client.postinst index a12673238..ee44d5388 100644 --- a/debian/openafs-client.postinst +++ b/debian/openafs-client.postinst @@ -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