diff --git a/install_orbit_environment.sh b/install_orbit_environment.sh index e790fa0..00eeaca 100644 --- a/install_orbit_environment.sh +++ b/install_orbit_environment.sh @@ -16,14 +16,14 @@ wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/ bash install_nginx.sh sudo nginx -t 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 fi sudo service nginx restart cd /etc/nginx/ sudo mkdir orbit_sites/ 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 cd $org_pwd sudo apt-get install gnupg -y