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
94c2fe50
Commit
94c2fe50
authored
May 10, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
createbytask.sh: copy nginx config from a6
parent
49b87e6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
createbytask.sh
vz/azbyka/createbytask.sh
+5
-9
No files found.
vz/azbyka/createbytask.sh
View file @
94c2fe50
...
...
@@ -14,11 +14,7 @@ assure()
hostserver
()
{
if
[
$(
hostname
)
=
"a01.azbyka.ru"
]
;
then
"
$@
"
else
ssh a01
"
$@
"
fi
ssh a06
"
$@
"
}
# TODO: from alt's
...
...
@@ -178,12 +174,12 @@ fi
# common projects (copy from base container)
if
[
-n
"
$VEIDORIG
"
]
;
then
# copy nginx config from a0
1
# copy nginx config from a0
6
if
[
!
-s
"/etc/nginx/sites-enabled.d/azbyka.d/
$NAME
.conf"
]
;
then
hostserver
cat
/
var/lib/vz/root/900/
etc/nginx/sites-enabled.d/azbyka.d/
$NAME
.conf |
sed
-e
"s|/home/|/azbyka/|"
>
/etc/nginx/sites-enabled.d/azbyka.d/
$NAME
.conf
hostserver
cat
/
var/lib/vz/root/900/
etc/nginx/sites-enabled.d/azbyka.d/
$NAME
-manual
.conf |
sed
-e
"s|/home/|/azbyka/|"
>
/etc/nginx/sites-enabled.d/azbyka.d/
$NAME
-manual
.conf
hostserver
cat
/etc/nginx/sites-enabled.d/azbyka.d/
$NAME
.conf |
sed
-e
"s|/home/|/azbyka/|"
>
/etc/nginx/sites-enabled.d/azbyka.d/
$NAME
.conf
hostserver
cat
/etc/nginx/sites-enabled.d/azbyka.d/
$NAME
-manual
.conf |
sed
-e
"s|/home/|/azbyka/|"
>
/etc/nginx/sites-enabled.d/azbyka.d/
$NAME
-manual
.conf
[
-s
/etc/nginx/sites-enabled.d/azbyka.d/
$NAME
-manual
.conf
]
||
rm
-f
/etc/nginx/sites-enabled.d/azbyka.d/
$NAME
-manual
.conf
hostserver
cat
/
var/lib/vz/root/900/
etc/nginx/include/static-fallback-
$NAME
.conf
>
/etc/nginx/include/static-fallback-
$NAME
.conf
hostserver
cat
/etc/nginx/include/static-fallback-
$NAME
.conf
>
/etc/nginx/include/static-fallback-
$NAME
.conf
fi
# hack
...
...
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