diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-03-12 03:12:30 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-03-12 03:12:30 +0000 |
commit | 1a87b2c2b61b3785b6a6597b220fec611c5872e6 (patch) | |
tree | b18ad66509f6119762754d11619bbf5b72e42fe6 /source | |
parent | d2376416d6350b22550ab56a590afd06d7c4d9bf (diff) | |
download | samba-1a87b2c2b61b3785b6a6597b220fec611c5872e6.tar.gz samba-1a87b2c2b61b3785b6a6597b220fec611c5872e6.tar.xz samba-1a87b2c2b61b3785b6a6597b220fec611c5872e6.zip |
added an install target for SWAT
Diffstat (limited to 'source')
-rwxr-xr-x | source/script/installswat.sh | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/source/script/installswat.sh b/source/script/installswat.sh new file mode 100755 index 00000000000..dcdfc530b43 --- /dev/null +++ b/source/script/installswat.sh @@ -0,0 +1,41 @@ +#!/bin/sh +#fist version March 1998, Andrew Tridgell + +SWATDIR=$1 +SRCDIR=$2 + +echo Installing the Samba Web Admisistration Tool + +for d in $SWATDIR $SWATDIR/help $SWATDIR/images; do +if [ ! -d $d ]; then + mkdir $d +if [ ! -d $d ]; then + echo Failed to make directory $d, does $USER have privileges? + exit 1 +fi +fi +done + +for f in $SRCDIR../swat/images/*.gif; do + FNAME=$SWATDIR/images/`basename $f` + echo $FNAME + cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges? + chmod 0644 $FNAME +done + +for f in $SRCDIR../swat/help/*.html; do + FNAME=$SWATDIR/help/`basename $f` + echo $FNAME + cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges? + chmod 0644 $FNAME +done + +cat << EOF +====================================================================== +The SWAT files have been installed. Remember to read the web/README +for information on enabling and using SWAT +====================================================================== +EOF + +exit 0 + |