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

feat: 不再默认安装podman

This commit is contained in:
耗子
2024-06-11 02:03:46 +08:00
parent e27940a71b
commit b9b3b9fedf
2 changed files with 2 additions and 19 deletions

View File

@@ -150,14 +150,14 @@ Prepare_System() {
# Rocky Linux
/usr/bin/crb enable
dnf makecache -y
dnf install -y curl wget zip unzip tar p7zip p7zip-plugins git jq git-core dos2unix podman rsyslog
dnf install -y curl wget zip unzip tar p7zip p7zip-plugins git jq git-core dos2unix rsyslog
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 curl wget zip unzip tar p7zip p7zip-full git jq git dos2unix podman rsyslog
apt-get install -y curl wget zip unzip tar p7zip p7zip-full git jq git dos2unix rsyslog
fi
if [ "$?" != "0" ]; then
echo -e $HR
@@ -166,9 +166,7 @@ Prepare_System() {
fi
systemctl enable rsyslog
systemctl enable podman
systemctl start rsyslog
systemctl start podman
if [ "$?" != "0" ]; then
echo -e $HR
echo "错误:安装面板依赖软件失败,请截图错误信息寻求帮助。"

View File

@@ -86,21 +86,6 @@ if version_lt "$oldVersion" "2.1.30"; then
openssl req -x509 -nodes -days 36500 -newkey ec:<(openssl ecparam -name secp384r1) -keyout $panelPath/storage/ssl.key -out $panelPath/storage/ssl.crt -subj "/C=CN/ST=Tianjin/L=Tianjin/O=HaoZi Technology Co., Ltd./OU=HaoZi Panel/CN=Panel"
fi
if version_lt "$oldVersion" "2.1.39"; then
echo "更新面板到 v2.1.39 ..."
echo "Update panel to v2.1.39 ..."
if [ "${OS}" == "centos" ]; then
dnf makecache
dnf install -y podman
else
apt-get update -y
apt-get install -y podman
fi
systemctl enable podman
systemctl start podman
fi
if version_lt "$oldVersion" "2.2.0"; then
echo "更新面板到 v2.2.0 ..."
echo "Update panel to v2.2.0 ..."