1panel的安装脚本注释
脚本名称:quick_install.sh,来自ChatGPT3.5的注释。
#!/bin/bash
# Bash 脚本开始
# 检查系统架构
osCheck=$(uname -a)
if [[ $osCheck =~ 'x86_64' ]]; then
architecture="amd64" # x86_64 架构
elif [[ $osCheck =~ 'arm64' ]] || [[ $osCheck =~ 'aarch64' ]]; then
architecture="arm64" # ARM64 架构
elif [[ $osCheck =~ 'armv7l' ]]; then
architecture="armv7" # ARMv7 架构
elif [[ $osCheck =~ 'ppc64le' ]]; then
architecture="ppc64le" # ppc64le 架构