nsbin/ssa/sub.del.wwwroot
Nico Schottelius df2daf524d init
Signed-off-by: Nico Schottelius <nico@manager.schottelius.org>
2017-07-19 17:15:41 +02:00

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.