Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
2680818f
Commit
2680818f
authored
Jul 11, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
createbytask.sh: switch to yandex mirror
parent
6a67b60e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
createbytask.sh
vz/azbyka/createbytask.sh
+13
-0
No files found.
vz/azbyka/createbytask.sh
View file @
2680818f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment