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
295a5aa7
Commit
295a5aa7
authored
Mar 16, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve cloned copying
parent
2d5afccc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
update_cloned_vz.sh
vz/update_cloned_vz.sh
+16
-7
No files found.
vz/update_cloned_vz.sh
View file @
295a5aa7
...
...
@@ -2,13 +2,19 @@
.
./config
#subst()
#{
# sed -i -e
#}
fix_phpconf
()
{
local
TO
=
"
$1
"
local
PCD
for
i
in
5.5 5.4 5.3
;
do
for
i
in
5.
6 5.
5 5.4 5.3
;
do
PCD
=
"
$TO
/etc/php/
$i
/apache2-mod_php/php.ini"
if
[
-r
"
$PCD
"
]
;
then
# broken on CentOS
subst
"s|^memory_limit =.*|memory_limit = 386M|g"
$PCD
subst
"s|^date.timezone =.*|date.timezone ='Europe/Moscow'|g"
$PCD
break
...
...
@@ -26,15 +32,18 @@ TO=$ROOTSYS/$TOCONT
test
-d
"
$TO
"
||
return
echo
echo
" ===========
$TO
======== "
fix_phpconf
$TO
rsync
-a
v
--progress
--delete-after
$FROM
/etc/httpd2/conf/
$TO
/etc/httpd2/conf
/
rsync
-a
v
--progress
--delete-after
$FROM
/etc/monitrc.d/
$TO
/etc/monitrc.d/
rsync
-a
v
--progress
--delete-after
$FROM
/etc/tcb/
$TO
/etc/tcb/
rsync
-a
v
--progress
--delete-after
$FROM
/etc/postfix/
$TO
/etc/postfix/
rsync
-a
--progress
--delete-after
$FROM
/etc/httpd2/conf/sites-enabled/
$TO
/etc/httpd2/conf/sites-enabled
/
rsync
-a
--progress
--delete-after
$FROM
/etc/monitrc.d/
$TO
/etc/monitrc.d/
rsync
-a
--progress
--delete-after
$FROM
/etc/tcb/
$TO
/etc/tcb/
rsync
-a
--progress
--delete-after
$FROM
/etc/postfix/
$TO
/etc/postfix/
for
i
in
passwd shadow group monitrc httpd2/conf/mods-available/rpaf.conf
;
do
rsync
-a
v
--progress
--delete-after
$FROM
/etc/
$i
$TO
/etc/
$i
for
i
in
passwd shadow group monitrc httpd2/conf/mods-available/rpaf.conf
httpd2/conf/mods-available/remoteip.conf
;
do
rsync
-a
--progress
--delete-after
$FROM
/etc/
$i
$TO
/etc/
$i
done
# reserve server
...
...
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