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
032ae560
Commit
032ae560
authored
Oct 26, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clone_vz_sites: fix
parent
dfd72ed5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
clone_vz_sites.sh
vz/clone_vz_sites.sh
+9
-2
No files found.
vz/clone_vz_sites.sh
View file @
032ae560
...
@@ -11,8 +11,15 @@ TO=$ROOTSYS/$TCONT
...
@@ -11,8 +11,15 @@ TO=$ROOTSYS/$TCONT
rsync
-av
--progress
--delete-after
$FROM
/etc/httpd2/conf/sites-enabled/
$TO
/etc/httpd2/conf/sites-enabled/
rsync
-av
--progress
--delete-after
$FROM
/etc/httpd2/conf/sites-enabled/
$TO
/etc/httpd2/conf/sites-enabled/
rsync
-av
--progress
--delete-after
$FROM
/etc/monitrc.d/
$TO
/etc/monitrc.d/
rsync
-av
--progress
--delete-after
$FROM
/etc/monitrc.d/
$TO
/etc/monitrc.d/
rsync
-av
--progress
--delete-after
$FROM
/etc/
hosts
$TO
/etc/hosts
/
rsync
-av
--progress
--delete-after
$FROM
/etc/
tcb/
$TO
/etc/tcb
/
vzctl
exec
$TCONT
update_chrooted
for
i
in
passwd shadow group
;
do
rsync
-av
--progress
--delete-after
$FROM
/etc/
$i
$TO
/etc/
$i
done
#rsync -av --progress --delete-after $FROM/etc/hosts $TO/etc/hosts
sed
-e
"s|192.168.3.90 sites.host03.eterhost.ru sites|192.168.3.41 sites41.host03.eterhost.ru sites41|g"
<
$FROM
/etc/hosts
>
$TO
/etc/hosts
vzctl
exec
$TCONT
update_chrooted conf
vzctl
exec
$TCONT
serv httpd2 restart
vzctl
exec
$TCONT
serv httpd2 restart
vzctl
exec
$TCONT
serv monit restart
vzctl
exec
$TCONT
serv monit restart
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