Listing 2: Example virtual script
#!/bin/sh
FPADM=/usr/local/frontpage/version4.0/bin/fpsrvadm.exe
APCTL=/usr/local/apache/bin/apachectl
APCFG=/usr/local/apache/conf/httpd.conf
if [ $# -ne 4 ]; then
echo "usage: $0 username group password hostname"
exit 1
fi
$FPADM -o install -t apache -m "$4" -u "$1" -pw "$3" -s "$APCFG" -xu "$1" -xg "$2"
$APCTL restart
|