echo ">$RET" >/etc/openafs/server/CellServDB
fi
fi
+ db_stop
# Move the contents of the old /etc/openafs/server-local directory into
# /var/lib/openafs/local. Most of the files in this directory are
#
# Change the paths to upserver and upclient in BosConfig from older
# versions that had the binaries in /usr/sbin.
- if [ "x$2" != "x" ] && dpkg --compare-versions $2 lt 1.4.4.dfsg1-4 ; then
+ if [ x"$2" != x ] && dpkg --compare-versions "$2" lt 1.4.4.dfsg1-4 ; then
for f in sysid sysid.old NetInfo NetRestrict ; do
if [ -e "/etc/openafs/server-local/$f" ] ; then
cp "/etc/openafs/server-local/$f" "/var/lib/openafs/local/$f"
/etc/openafs/BosConfig
fi
fi
- db_stop
+
+ # Previous versions of the package set the permissions on
+ # /var/lib/openafs/local to 755, but upstream prefers 700 to protect the
+ # fssync.sock socket. Probably doesn't matter on Linux, but if we
+ # diverge, either bosserver complains or we have to patch it. dpkg won't
+ # change the permissions of existing directories.
+ if [ x"$2" != x ] && dpkg --compare-versions "$2" lt 1.4.11+dfsg-3 ; then
+ chmod 700 /var/lib/openafs/local
+ fi
;;
abort-upgrade|abort-remove|abort-deconfigure)