summaryrefslogtreecommitdiff
path: root/source/script/installscripts.sh
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-05-30 03:16:17 +0000
committerAndrew Tridgell <tridge@samba.org>1996-05-30 03:16:17 +0000
commit48c6b86d4c580d62ef46132dc04ce2b1d14e21e8 (patch)
tree6cf73c85e274ed4fd68e08e5dcdb22741c6a11a0 /source/script/installscripts.sh
parent64c6a19923e43c8b0e3a3da4e56b0eb136f830d5 (diff)
downloadsamba-48c6b86d4c580d62ef46132dc04ce2b1d14e21e8.tar.gz
- added an entry on WinDD to samba.faq
- added a sample smb.conf from Thoralf.Freitag@remserv.rz.fhtw-berlin.de - print the errno when you get a can't change directory error - added installscripts.sh from James_K._Foote.PARC@xerox.com
Diffstat (limited to 'source/script/installscripts.sh')
-rwxr-xr-xsource/script/installscripts.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/source/script/installscripts.sh b/source/script/installscripts.sh
new file mode 100755
index 00000000000..a3defa16e1a
--- /dev/null
+++ b/source/script/installscripts.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+# this script courtesy of James_K._Foote.PARC@xerox.com
+INSTALLPERMS=$1
+BINDIR=$2
+SRCDIR=$3
+
+echo Installing scripts in $BINDIR
+
+for d in $BINDIR; do
+ if [ ! -d $d ]; then
+ mkdir $d
+ if [ ! -d $d ]; then
+ echo Failed to make directory $d
+ exit 1
+ fi
+ fi
+done
+
+cp $SRCDIR/smbtar $BINDIR
+cp $SRCDIR/addtosmbpass $BINDIR
+echo Setting permissions on scripts
+chmod $INSTALLPERMS $BINDIR/smbtar
+chmod $INSTALLPERMS $BINDIR/addtosmbpass
+
+echo Scripts installed
+exit 0