Reworked how /etc/exports is setup (bz 151389)
This commit is contained in:
parent
0f0b0e3127
commit
508922843e
@ -1,7 +1,7 @@
|
||||
Summary: NFS utlilities and supporting daemons for the kernel NFS server.
|
||||
Name: nfs-utils
|
||||
Version: 1.0.7
|
||||
Release: 2
|
||||
Release: 3
|
||||
|
||||
# group all 32bit related archs
|
||||
%define all_32bit_archs i386 i686 athlon
|
||||
@ -239,6 +239,9 @@ fi
|
||||
%config /etc/rc.d/init.d/nfslock
|
||||
|
||||
%changelog
|
||||
* Sat Mar 19 2005 Steve Dickson <SteveD@RedHat.com> 1.0.7-3
|
||||
- Reworked how /etc/exports is setup (bz 151389)
|
||||
|
||||
* Wed Mar 2 2005 Steve Dickson <SteveD@RedHat.com> 1.0.7-2
|
||||
- Tied the rpcsecgss debugging in with gssd and
|
||||
svcgssd debugging
|
||||
|
4
nfs.init
4
nfs.init
@ -28,8 +28,8 @@ fi
|
||||
[ -x /usr/sbin/exportfs ] || exit 0
|
||||
|
||||
# Don't fail if /etc/exports doesn't exist; create a bare-bones version and continue.
|
||||
[ -s /etc/exports ] || \
|
||||
{ echo "#" > /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
|
||||
[ -r /etc/exports ] || \
|
||||
{ touch /etc/exports && chmod u+rw,g+r,o+r /etc/exports ; } || \
|
||||
{ echo "/etc/exports does not exist" ; exit 0 ; }
|
||||
|
||||
# Check for and source configuration file otherwise set defaults
|
||||
|
Loading…
Reference in New Issue
Block a user