linux-fedora9-packaging-updates-20080422
[openafs.git] / src / packaging / OpenBSD / postinstall
index bbaf929..c958909 100644 (file)
@@ -1,10 +1,18 @@
 # $Id$
 
+if [ `id -u` != "0" ]; then
+  echo "Must be root; current id="`id -u`
+  exit 1
+fi
+
 umask 022
 if [ ! -d /afs ]; then
   mkdir /afs
 fi
 
+chown root.bin /usr/vice /usr/vice/cache
+chown -R root.bin /usr/vice/bin /usr/vice/etc
+
 strip -x /usr/vice/bin/*
 
 echo "Fetching CellServDB..."