mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
proper condition nginx config change
This commit is contained in:
parent
5d6dd16ce5
commit
b470605033
1 changed files with 4 additions and 4 deletions
|
@ -95,10 +95,10 @@ else
|
|||
tmp_conf="$HOMEDIR/$user/conf/web/tmp_$PROXY_SYSTEM.conf"
|
||||
conf="$HOMEDIR/$user/conf/web/$PROXY_SYSTEM.conf"
|
||||
mv $tmp_conf $conf
|
||||
fi
|
||||
proxy_include=$(grep "$conf" $proxy_conf )
|
||||
if [ -z "$proxy_include" ]; then
|
||||
echo "include $conf;" >> $proxy_conf
|
||||
proxy_include=$(grep "$conf" $proxy_conf )
|
||||
if [ -z "$proxy_include" ]; then
|
||||
echo "include $conf;" >> $proxy_conf
|
||||
fi
|
||||
fi
|
||||
|
||||
# Checking SSL proxy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue