2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 16:10:59 +08:00

fix(plugin): openresty OS check

This commit is contained in:
耗子
2023-07-04 02:10:17 +08:00
parent a46fec9016
commit 7cd7aaa8d0

View File

@@ -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"