1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

added an install target for SWAT

(This used to be commit 1a87b2c2b6)
This commit is contained in:
Andrew Tridgell 1998-03-12 03:12:30 +00:00
parent 540af9b304
commit e5edc3e9f3

41
source3/script/installswat.sh Executable file
View File

@ -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