Add remove nginx before rebuilding.
This commit is contained in:
parent
39414f747d
commit
ef08ea036b
|
@ -103,6 +103,10 @@ if [[ "$nginx_ver" < $nginx_target_ver ]] || [[ "$1" == '--force' ]] || [[ "$ins
|
||||||
else
|
else
|
||||||
nginx_conf_exist="0"
|
nginx_conf_exist="0"
|
||||||
fi
|
fi
|
||||||
|
nginx_org_path="$(which nginx)"
|
||||||
|
if [[ ! -z "$nginx_org_path" ]]; then
|
||||||
|
rm -f $nginx_org_path
|
||||||
|
fi
|
||||||
#Build nginx and install
|
#Build nginx and install
|
||||||
sudo bash -l -c "
|
sudo bash -l -c "
|
||||||
cd /root && \
|
cd /root && \
|
||||||
|
|
Loading…
Reference in New Issue