From d904eed23b1b8cc3f255df686197bf53c1776dd4 Mon Sep 17 00:00:00 2001 From: bohung Date: Wed, 24 Aug 2022 18:09:51 +0800 Subject: [PATCH] Fix bug. --- install_orbit_environment.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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