diff --git a/scripts/plugins/openresty/install.sh b/scripts/plugins/openresty/install.sh index ffe4ed19..1f12be6e 100644 --- a/scripts/plugins/openresty/install.sh +++ b/scripts/plugins/openresty/install.sh @@ -19,8 +19,8 @@ limitations under the License. HR="+----------------------------------------------------" ARCH=$(uname -m) +OS=$(source /etc/os-release && { [[ "$ID" == "debian" ]] && echo "debian"; } || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]] && echo "centos"; } || echo "unknown") cpuCore=$(cat /proc/cpuinfo | grep "processor" | wc -l) -OS=$(source /etc/os-release && [[ "$ID" == "debian" ]] && echo "debian" || { [[ "$ID" == "centos" ]] || [[ "$ID" == "rhel" ]] || [[ "$ID" == "rocky" ]] || [[ "$ID" == "almalinux" ]]; } && echo "centos" || echo "unknown") downloadUrl="https://dl.cdn.haozi.net" setupPath="/www" openrestyPath="${setupPath}/server/openresty"