Commit a2348450 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add old createbylist_site.sh

parent dd743979
#!/bin/sh
CONFDIR=/vz/root/900/etc/nginx/sites-enabled.d
for task in al-masih.azbyka.ru ; do
veid=$(grep sites80 $CONFDIR/$task.conf | sed -e "s|.*//sites80\([0-9][0-9]\).*|\1|" | head -n1)
[ -n "$veid" ] || { echo "skip $task" ; continue ; }
cat <<EOF >ves/$task.task
VEID=1$veid
NAME=$task
AUSER="$(echo "$task" | sed -e "s|\..*||g")"
EOF
#cat task.task
#continue
./createbytask.sh ves/$task.task
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment