diff --git a/install.sh b/install.sh index 81efb0c..7f36484 100644 --- a/install.sh +++ b/install.sh @@ -91,7 +91,7 @@ function system_check() { INS="apt install -y" # 清除可能的遗留问题 rm -f /etc/apt/sources.list.d/nginx.list - $INS lsb-release + $INS lsb-release gnupg2 echo "deb http://nginx.org/packages/debian $(lsb_release -cs) nginx" >/etc/apt/sources.list.d/nginx.list curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add - @@ -102,7 +102,7 @@ function system_check() { INS="apt install -y" # 清除可能的遗留问题 rm -f /etc/apt/sources.list.d/nginx.list - $INS lsb-release + $INS lsb-release gnupg2 echo "deb http://nginx.org/packages/ubuntu $(lsb_release -cs) nginx" >/etc/apt/sources.list.d/nginx.list curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -