Commit 567a551e authored by Vitaly Lipatov's avatar Vitaly Lipatov

createbytask.sh: use hostserver instead direct cat

parent a013e856
......@@ -32,7 +32,7 @@ tune_yandex_mirror()
PKGINSTALL=
if [ -s "base.task" ] ; then
. base.task
. ./base.task
fi
TASK="$1"
......@@ -118,8 +118,7 @@ st()
# common projects
if [ -n "$VEIDORIG" ] ; then
if [ ! -s "apache/$AUSER.conf" ] ; then
# Здесь cat, а ниже — hostserver
cat /var/lib/vz/root/$VEIDORIG/etc/httpd2/conf/sites-enabled/$ACONF.conf > apache/$ACONF.conf
hostserver cat /var/lib/vz/root/$VEIDORIG/etc/httpd2/conf/sites-enabled/$ACONF.conf > apache/$ACONF.conf
fi
[ -s apache/$ACONF.conf ] || fatal "Empty apache/$ACONF.conf"
......
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