mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 02:07:18 +08:00
fix(plugin): openresty OS check
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user