df2daf524d
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
20 lines
297 B
Bash
Executable file
20 lines
297 B
Bash
Executable file
#!/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.
|