Fix PHP deploy
This commit is contained in:
parent
d2333b2b3a
commit
7e09a0b778
1 changed files with 4 additions and 4 deletions
|
@ -99,11 +99,11 @@ function setTech() {
|
|||
test -e /srv/conf/nginx.d/default.conf && rm -f /srv/conf/nginx.d/default.conf
|
||||
|
||||
# Same thing we do for nginx but if the file exist it's not rewritten.
|
||||
if [ ! -e /srv/conf/nginx.d/app.conf ]; then
|
||||
# Except if the file is in /srv/app, then it's moved to /srv/conf/nginx.d
|
||||
if [ ! -e /srv/conf/nginx.d/app.conf -o -e /srv/app/nginx.conf ]; then
|
||||
mkdir -p /srv/conf/nginx.d
|
||||
if [ -e /opt/examples/$tech/nginx.conf ]; then
|
||||
cp /opt/examples/$tech/nginx.conf /srv/conf/nginx.d/app.conf
|
||||
rm /srv/app/nginx.conf
|
||||
if [ -e /srv/app/nginx.conf ]; then
|
||||
mv /srv/app/nginx.conf /srv/conf/nginx.d/app.conf
|
||||
else
|
||||
cp /opt/examples/nginx/nginx.conf /srv/conf/nginx.d/app.conf
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue