Fix nginx.conf missing semicolon.

This commit is contained in:
邱博亞 2024-04-18 08:09:56 +08:00
parent 9f076ee944
commit 0801fae03d
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ if [ -z "$(grep 'orbit_sites' nginx.conf)" ]; then
sudo sed -i 's/\(include\ \/etc\/nginx\/sites-enabled\/\*\;\)/\1\n include\ \/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
if [[ "$ubuntu_version" > '22' ]]; then #Use root account prevent reading socket denied if [[ "$ubuntu_version" > '22' ]]; then #Use root account prevent reading socket denied
sudo sed -E -i 's/^[# ]*user.*/user root/g' /etc/nginx/nginx.conf sudo sed -E -i 's/^[# ]*user.*/user root;/g' /etc/nginx/nginx.conf
fi fi
cd $org_pwd cd $org_pwd
sudo apt-get install gnupg -y sudo apt-get install gnupg -y