diff --git a/install_orbit_environment.sh b/install_orbit_environment.sh index 4dbf126..bfb099e 100644 --- a/install_orbit_environment.sh +++ b/install_orbit_environment.sh @@ -12,6 +12,11 @@ sudo apt-get install -y postfix sudo service postfix start #install nginx 1.18 sudo apt install nginx -y +sudo nginx -t +nginx_status="$(echo $?)" +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/