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

16 lines
328 B
Bash
Executable file

#!/bin/sh
WEBS=/home/server/www/webs
WWW=/home/server/www
for tlds in $WEBS/*/*; do
mkdir -p $WWW/`basename $tlds`
cd $WWW/`basename $tlds`;
for domain in $tlds/*; do
mkdir -p `basename $domain`
cd `basename $domain`
for subdomain in $domain/*; do
ln -s $subdomain
done
done
done