2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 11:27:17 +08:00

fix: debian下缺失podman存储配置

This commit is contained in:
耗子
2024-06-16 04:20:39 +08:00
parent 43624de2e4
commit 17bb8ad62b
3 changed files with 8 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ import (
func Boot() {}
func init() {
support.RootPath = "/www/panel" // TODO remove this line
config := facades.Config()
config.Add("app", map[string]any{
// Application Name

View File

@@ -27,7 +27,9 @@ if [ "${OS}" == "centos" ]; then
dnf install podman -y
elif [ "${OS}" == "debian" ]; then
apt-get update
apt-get install podman -y
apt-get install podman containers-storage -y
# Debian下不清楚是不是Bug需要手动复制存储配置到正确位置
cp /usr/share/containers/storage.conf /etc/containers/storage.conf
else
echo -e $HR
echo "错误:耗子面板不支持该系统"

View File

@@ -111,6 +111,10 @@ if version_lt "$oldVersion" "2.2.9"; then
echo "Update panel to v2.2.9 ..."
if [ -f "/usr/bin/podman" ]; then
panel writePlugin podman 4.0.0
if [ "${OS}" == "debian" ]; then
apt-get install podman containers-storage -y
cp /usr/share/containers/storage.conf /etc/containers/storage.conf
fi
systemctl enable podman
systemctl enable podman-restart
systemctl start podman