mirror of
https://git.myvelabs.com/lab/nginx.git
synced 2025-12-17 21:26:13 +00:00
Update nginx.sh
This commit is contained in:
parent
9eb885e581
commit
b428af5759
1 changed files with 3 additions and 3 deletions
6
nginx.sh
6
nginx.sh
|
|
@ -30,10 +30,10 @@ done
|
||||||
# Figure out nginx conf directory
|
# Figure out nginx conf directory
|
||||||
if grep -q 'include.*conf.d' /etc/nginx/nginx.conf
|
if grep -q 'include.*conf.d' /etc/nginx/nginx.conf
|
||||||
then
|
then
|
||||||
nginxdir=/etc/nginx/conf.d
|
nginxdir=conf.d
|
||||||
elif grep -q 'include.*sites-available' /etc/nginx/nginx.conf
|
elif grep -q 'include.*sites-enabled' /etc/nginx/nginx.conf
|
||||||
then
|
then
|
||||||
nginxdir=/etc/nginx/sites-available
|
nginxdir=sites-available
|
||||||
sudo ln -s -f /etc/nginx/sites-available/${appname}.conf /etc/nginx/sites-enabled/
|
sudo ln -s -f /etc/nginx/sites-available/${appname}.conf /etc/nginx/sites-enabled/
|
||||||
else
|
else
|
||||||
echo "Missing nginx directory, exiting..."
|
echo "Missing nginx directory, exiting..."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue