summaryrefslogtreecommitdiff
path: root/source3/script
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-10-02 21:22:58 +0000
committerGerald Carter <jerry@samba.org>2003-10-02 21:22:58 +0000
commita234b822d4adf22df00349905401deb4349935ac (patch)
tree48bb1c77107cbdd657a7a6c22ec6bd8a41e5d6a0 /source3/script
parent19953ff72e96694568f981fad40584774312ce6e (diff)
downloadsamba-a234b822d4adf22df00349905401deb4349935ac.tar.gz
samba-a234b822d4adf22df00349905401deb4349935ac.tar.bz2
samba-a234b822d4adf22df00349905401deb4349935ac.zip
fixed for /sbin/mount.smbfs link when using $DESTDIR; bug 525
(This used to be commit dc6d14c2bd1a8509e40c198065b8dc930c37d3ed)
Diffstat (limited to 'source3/script')
-rwxr-xr-xsource3/script/installbin.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/source3/script/installbin.sh b/source3/script/installbin.sh
index c2f34082dd..fe3bc4c48a 100755
--- a/source3/script/installbin.sh
+++ b/source3/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