Fix bug.
This commit is contained in:
parent
99727ae8fb
commit
d904eed23b
|
@ -16,14 +16,14 @@ wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/
|
||||||
bash install_nginx.sh
|
bash install_nginx.sh
|
||||||
sudo nginx -t
|
sudo nginx -t
|
||||||
nginx_status="$(echo $?)"
|
nginx_status="$(echo $?)"
|
||||||
if [ $nginx_status != 0 ]; then
|
if [ $nginx_status != "0" ]; then
|
||||||
sudo sed -i 's/\([^#]include \/etc\/nginx\/sites-enabled\/*\)/\#\1/g' /etc/nginx/nginx.conf
|
sudo sed -i 's/\([^#]include \/etc\/nginx\/sites-enabled\/*\)/\#\1/g' /etc/nginx/nginx.conf
|
||||||
fi
|
fi
|
||||||
sudo service nginx restart
|
sudo service nginx restart
|
||||||
cd /etc/nginx/
|
cd /etc/nginx/
|
||||||
sudo mkdir orbit_sites/
|
sudo mkdir orbit_sites/
|
||||||
if [ -z "$(grep 'orbit_sites' nginx.conf)" ]; then
|
if [ -z "$(grep 'orbit_sites' nginx.conf)" ]; then
|
||||||
sudo sed -i 's/\(include\ \/etc\/nginx\/sites-enabled\/\*\;\)/\1\n\tinclude\ \/etc\/nginx\/orbit_sites\/*;/g' nginx.conf
|
sudo sed -i 's/\(include\ \/etc\/nginx\/sites-enabled\/\*\;\)/\1\n include\ \/etc\/nginx\/orbit_sites\/*;/g' nginx.conf
|
||||||
fi
|
fi
|
||||||
cd $org_pwd
|
cd $org_pwd
|
||||||
sudo apt-get install gnupg -y
|
sudo apt-get install gnupg -y
|
||||||
|
|
Loading…
Reference in New Issue