diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-08-10 01:55:42 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-08-10 01:55:42 +0000 |
commit | 1c6f52cc284a75e304d10c098088c1c846c9efc8 (patch) | |
tree | 90260b384ff8eaf0150e920a14003ab48a9ae851 /source3/script/installscripts.sh | |
parent | 65a29b0ca56a78148b415fd817af245afc2bb0b9 (diff) | |
download | samba-1c6f52cc284a75e304d10c098088c1c846c9efc8.tar.gz samba-1c6f52cc284a75e304d10c098088c1c846c9efc8.tar.bz2 samba-1c6f52cc284a75e304d10c098088c1c846c9efc8.zip |
fixed the installation scripts for the new layout
(This used to be commit 60cdb83f3f6dfd7755e46254662245a82a8ef498)
Diffstat (limited to 'source3/script/installscripts.sh')
-rwxr-xr-x | source3/script/installscripts.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/source3/script/installscripts.sh b/source3/script/installscripts.sh index 1a230c8cfa..6d55317e9e 100755 --- a/source3/script/installscripts.sh +++ b/source3/script/installscripts.sh @@ -22,13 +22,16 @@ for d in $BINDIR; do done for p in $*; do - echo Installing $BINDIR/$p - cp $p $BINDIR/$p - if [ ! -f $BINDIR/$p ]; then - echo Cannot copy $p... does $USER have privileges? + p2=`basename $p` + echo Installing $BINDIR/$p2 + if [ -f $BINDIR/$p2 ]; then + mv $BINDIR/$p2 $BINDIR/$p2.old + fi + cp $p $BINDIR/ + chmod $INSTALLPERMS $BINDIR/$p2 + if [ ! -f $BINDIR/$p2 ]; then + echo Cannot copy $p2... does $USER have privileges? fi - echo Setting permissions on $BINDIR/$p - chmod $INSTALLPERMS $BINDIR/$p done cat << EOF |