Commit 2680818f authored by Vitaly Lipatov's avatar Vitaly Lipatov

createbytask.sh: switch to yandex mirror

parent 6a67b60e
......@@ -21,6 +21,14 @@ hostserver()
fi
}
tune_yandex_mirror()
{
local APTSDIR=$1/etc/apt/sources.list.d
sed -i -e 's|^\(rpm \[p8\] ftp://updates.etersoft.ru/pub ALTLinux/p8\)|#\1|' $APTSDIR/etersoft.list || return
sed -i -e 's|^#\(rpm \[p8\] http://mirror.yandex.ru/altlinux p8\)|\1|' $APTSDIR/yandex.list || return
}
PKGINSTALL=
if [ -s "base.task" ] ; then
......@@ -91,6 +99,10 @@ if ! vzlist | grep $VEIP ; then
vzctl start $VEID || fatal
fi
if [ "$BASENAME" = "azbyka" ] ; then
tune_yandex_mirror /var/lib/vz/root/$VEID
fi
# TODO: first time only or force?
if true ; then
vzctl exec $VEID update_chrooted conf
......@@ -106,6 +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
fi
......
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