nsbin/ssa/sub.del.wwwroot

21 lines
297 B
Text
Raw Normal View History

#!/bin/sh
. `dirname $0`/sub.defaults
TLD="$1"
SLD="$2"
SUBDOMAIN="$3"
if [ $# -ne 3 ]; then
echo $0: TLD SLD SUBDOMAIN
exit 1
fi
echo -n removing wwwroot for $SUBDOMAIN.$SLD.$TLD ...
# root
rm -r $WEBBASE/$TLD/$SLD/$SUBDOMAIN
rmdir $WEBBASE/$TLD/$SLD/
rmdir $WEBBASE/$TLD/
echo done.