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
|
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.
|
# 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
|
mkdir -p /srv/conf/nginx.d
|
||||||
if [ -e /opt/examples/$tech/nginx.conf ]; then
|
if [ -e /srv/app/nginx.conf ]; then
|
||||||
cp /opt/examples/$tech/nginx.conf /srv/conf/nginx.d/app.conf
|
mv /srv/app/nginx.conf /srv/conf/nginx.d/app.conf
|
||||||
rm /srv/app/nginx.conf
|
|
||||||
else
|
else
|
||||||
cp /opt/examples/nginx/nginx.conf /srv/conf/nginx.d/app.conf
|
cp /opt/examples/nginx/nginx.conf /srv/conf/nginx.d/app.conf
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue