install nginx=1.20.2
This commit is contained in:
parent
a05ad4ee94
commit
f0f264b911
@ -262,16 +262,9 @@ configure_nginx() {
|
|||||||
echo "deb [signed-by=/usr/share/keyrings/nginx.gpg] https://nginx.org/packages/ubuntu/ $(lsb_release -cs) nginx" | sudo tee /etc/apt/sources.list.d/nginx.list > /dev/null
|
echo "deb [signed-by=/usr/share/keyrings/nginx.gpg] https://nginx.org/packages/ubuntu/ $(lsb_release -cs) nginx" | sudo tee /etc/apt/sources.list.d/nginx.list > /dev/null
|
||||||
echo "deb-src [signed-by=/usr/share/keyrings/nginx.gpg] https://nginx.org/packages/ubuntu/ $(lsb_release -cs) nginx" | sudo tee -a /etc/apt/sources.list.d/nginx.list > /dev/null
|
echo "deb-src [signed-by=/usr/share/keyrings/nginx.gpg] https://nginx.org/packages/ubuntu/ $(lsb_release -cs) nginx" | sudo tee -a /etc/apt/sources.list.d/nginx.list > /dev/null
|
||||||
fi
|
fi
|
||||||
if command_exists nginx; then
|
if confirm_action "要安装 nginx 吗?" "Y"; then
|
||||||
if confirm_action "要更新 nginx 吗?" "N"; then
|
sudo apt update
|
||||||
sudo apt update
|
sudo apt install nginx=1.20.2-1~$(lsb_release -cs) -y
|
||||||
sudo apt upgrade nginx -y
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if confirm_action "要安装 nginx 吗?" "Y"; then
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install nginx -y
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user