diff options
author | Gerald Carter <jerry@samba.org> | 2003-10-02 21:22:58 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-10-02 21:22:58 +0000 |
commit | dc6d14c2bd1a8509e40c198065b8dc930c37d3ed (patch) | |
tree | 7b0756867e5066f13187b4d84c8d7aafd8f5efe6 /source/script | |
parent | 93669f329eccec34d4a1da6239ae9759f067fb8b (diff) | |
download | samba-dc6d14c2bd1a8509e40c198065b8dc930c37d3ed.tar.gz |
fixed for /sbin/mount.smbfs link when using $DESTDIR; bug 525
Diffstat (limited to 'source/script')
-rwxr-xr-x | source/script/installbin.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source/script/installbin.sh b/source/script/installbin.sh index c2f34082dd9..fe3bc4c48ae 100755 --- a/source/script/installbin.sh +++ b/source/script/installbin.sh @@ -1,10 +1,12 @@ #!/bin/sh INSTALLPERMS=$1 -BASEDIR=$2 -BINDIR=$3 -LIBDIR=$4 -VARDIR=$5 +DESTDIR=$2 +BASEDIR=$3 +BINDIR=$4 +LIBDIR=$5 +VARDIR=$6 +shift shift shift shift @@ -23,7 +25,10 @@ for p in $*; do # this is a special case, mount needs this in a specific location if [ $p2 = smbmount ]; then - ln -sf $BINDIR/$p2 /sbin/mount.smbfs + if [ ! -d $DESTDIR/sbin ]; then + mkdir $DESTDIR/sbin + fi + ln -sf $BINDIR/$p2 $DESTDIR/sbin/mount.smbfs fi done |