diff --git a/config/app.go b/config/app.go index 542588e3..63bfa273 100644 --- a/config/app.go +++ b/config/app.go @@ -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 diff --git a/scripts/podman/install.sh b/scripts/podman/install.sh index 837f6875..c8cb93a2 100644 --- a/scripts/podman/install.sh +++ b/scripts/podman/install.sh @@ -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 "错误:耗子面板不支持该系统" diff --git a/scripts/update_panel.sh b/scripts/update_panel.sh index 4e514566..aac16a5c 100644 --- a/scripts/update_panel.sh +++ b/scripts/update_panel.sh @@ -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