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:
@@ -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
|
||||
|
||||
@@ -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 "错误:耗子面板不支持该系统"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user