2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 20:48:42 +08:00

feat: update v2.0.10

This commit is contained in:
耗子
2023-07-22 16:44:41 +08:00
parent 1689ef4e4a
commit a5e1fbc232
34 changed files with 3116 additions and 231 deletions

View File

@@ -18,6 +18,7 @@ limitations under the License.
'
HR="+----------------------------------------------------"
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/panel/php_extensions"
action="$1"
@@ -34,7 +35,15 @@ Install() {
fi
# 安装依赖
dnf install ImageMagick ImageMagick-devel -y
if [ "${OS}" == "centos" ]; then
dnf install ImageMagick ImageMagick-devel -y
elif [ "${OS}" == "debian" ]; then
apt install imagemagick libmagickwand-dev
else
echo -e $HR
echo "错误耗子Linux面板不支持该系统"
exit 1
fi
cd /www/server/php/${phpVersion}/src/ext
rm -rf imagick