[OpenAFS-devel] RPM bug
Simon Josefsson
simon+openafs-devel@josefsson.org
16 May 2001 14:32:51 +0200
The RPM spec file doesn't seem to be part of the snapshots, so I'm not
sure if this has been fixed already, but anyway... The fix is
trivial.
# rpm -Uvh openafs-1.0.4-24.1.i386.rpm openafs-devel-1.0.4-24.1.i386.rpm openafs-kernel-1.0.4-24.1.i386.rpm openafs-server-1.0.4-24.1.i386.rpm
Preparing... ########################################### [100%]
1:openafs-devel ########################################### [ 25%]
2:openafs-kernel ########################################### [ 50%]
3:openafs ########################################### [ 75%]
4:openafs-server ########################################### [100%]
/var/tmp/rpm-tmp.48040: [: missing `]'
Be sure to edit /etc/sysconfig/afs and turn AFS_SERVER on
# rpm -qp --scripts openafs-server-1.0.4-24.1.i386.rpm
postinstall script (through /bin/sh):
if [ -f /etc/sysconfig/afs ]; then
srv=`grep ^AFS_SERVER /etc/sysconfig/afs | sed 's/^AFS_SERVER[\s]*=[\s]*//'`
if [ $srv eq "on"]; then
exit 0
fi
fi
echo
echo Be sure to edit /etc/sysconfig/afs and turn AFS_SERVER on
echo
#