diff --git a/scripts/install_panel.sh b/scripts/install_panel.sh index 3b9889ea..81fa0c27 100644 --- a/scripts/install_panel.sh +++ b/scripts/install_panel.sh @@ -151,14 +151,14 @@ Prepare_System() { # Rocky Linux /usr/bin/crb enable dnf makecache -y - dnf install -y bash curl wget zip unzip tar p7zip p7zip-plugins git jq git-core dos2unix rsyslog + dnf install -y bash curl wget zip unzip tar p7zip p7zip-plugins git jq git-core dos2unix rsyslog make elif [ "${OS}" == "debian" ]; then if ${inChina}; then sed -i 's/deb.debian.org/mirrors.tencent.com/g' /etc/apt/sources.list sed -i 's/security.debian.org/mirrors.tencent.com/g' /etc/apt/sources.list fi apt-get update -y - apt-get install -y bash curl wget zip unzip tar p7zip p7zip-full git jq git dos2unix rsyslog + apt-get install -y bash curl wget zip unzip tar p7zip p7zip-full git jq git dos2unix rsyslog make fi if [ "$?" != "0" ]; then echo -e $HR diff --git a/scripts/mysql/install.sh b/scripts/mysql/install.sh index 63b379f9..94eac14a 100644 --- a/scripts/mysql/install.sh +++ b/scripts/mysql/install.sh @@ -59,6 +59,11 @@ else echo "错误:耗子面板不支持该系统" exit 1 fi +if [ "$?" != "0" ]; then + echo -e $HR + echo "错误:安装依赖软件失败,请截图错误信息寻求帮助。" + exit 1 +fi mysqlUserCheck=$(cat /etc/passwd | grep mysql) if [ "${mysqlUserCheck}" == "" ]; then diff --git a/scripts/openresty/install.sh b/scripts/openresty/install.sh index 58640d4c..ebd555a1 100644 --- a/scripts/openresty/install.sh +++ b/scripts/openresty/install.sh @@ -42,6 +42,11 @@ else echo "错误:耗子面板不支持该系统" exit 1 fi +if [ "$?" != "0" ]; then + echo -e $HR + echo "错误:安装依赖软件失败,请截图错误信息寻求帮助。" + exit 1 +fi # 准备目录 rm -rf ${openrestyPath} diff --git a/scripts/php/install.sh b/scripts/php/install.sh index f0504346..6a1ac75d 100644 --- a/scripts/php/install.sh +++ b/scripts/php/install.sh @@ -53,6 +53,11 @@ else echo "错误:耗子面板不支持该系统" exit 1 fi +if [ "$?" != "0" ]; then + echo -e $HR + echo "错误:安装依赖软件失败,请截图错误信息寻求帮助。" + exit 1 +fi # 准备安装目录 rm -rf ${phpPath} diff --git a/scripts/postgresql/install.sh b/scripts/postgresql/install.sh index 86149496..39c15080 100644 --- a/scripts/postgresql/install.sh +++ b/scripts/postgresql/install.sh @@ -53,6 +53,11 @@ else echo "错误:耗子面板不支持该系统" exit 1 fi +if [ "$?" != "0" ]; then + echo -e $HR + echo "错误:安装依赖软件失败,请截图错误信息寻求帮助。" + exit 1 +fi postgresqlUserCheck=$(cat /etc/passwd | grep postgres) if [ "${postgresqlUserCheck}" == "" ]; then diff --git a/scripts/redis/install.sh b/scripts/redis/install.sh index 69827f2a..98e20459 100644 --- a/scripts/redis/install.sh +++ b/scripts/redis/install.sh @@ -45,6 +45,11 @@ else echo "错误:耗子面板不支持该系统" exit 1 fi +if [ "$?" != "0" ]; then + echo -e $HR + echo "错误:安装依赖软件失败,请截图错误信息寻求帮助。" + exit 1 +fi # 准备目录 rm -rf ${redisPath} diff --git a/scripts/rsync/install.sh b/scripts/rsync/install.sh index 7f10f90a..680e9785 100644 --- a/scripts/rsync/install.sh +++ b/scripts/rsync/install.sh @@ -30,6 +30,11 @@ else echo "错误:不支持的操作系统" exit 1 fi +if [ "$?" != "0" ]; then + echo -e $HR + echo "错误:安装软件失败,请截图错误信息寻求帮助。" + exit 1 +fi # 写入配置 cat > /etc/rsyncd.conf << EOF diff --git a/scripts/s3fs/install.sh b/scripts/s3fs/install.sh index 7ab93609..642998d1 100644 --- a/scripts/s3fs/install.sh +++ b/scripts/s3fs/install.sh @@ -30,5 +30,10 @@ else echo "错误:不支持的操作系统" exit 1 fi +if [ "$?" != "0" ]; then + echo -e $HR + echo "错误:安装软件失败,请截图错误信息寻求帮助。" + exit 1 +fi panel writePlugin s3fs 1.9 diff --git a/scripts/supervisor/install.sh b/scripts/supervisor/install.sh index feb0426a..466eff31 100644 --- a/scripts/supervisor/install.sh +++ b/scripts/supervisor/install.sh @@ -35,5 +35,10 @@ else echo "错误:不支持的操作系统" exit 1 fi +if [ "$?" != "0" ]; then + echo -e $HR + echo "错误:安装软件失败,请截图错误信息寻求帮助。" + exit 1 +fi panel writePlugin supervisor 4.2.5