mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 12:40:25 +08:00
fix: 修复 logind 的问题
This commit is contained in:
@@ -163,6 +163,13 @@ TimeoutSec=infinity
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
|
||||
# 在 /etc/systemd/logind.conf 设置 RemoveIPC=no,不然会删除 /dev/shm 下的共享内存文件
|
||||
checkRemoveIPC=$(cat /etc/systemd/logind.conf | grep '^RemoveIPC=no.*$')
|
||||
if [ "${checkRemoveIPC}" == "" ]; then
|
||||
echo "RemoveIPC=no" >> /etc/systemd/logind.conf
|
||||
systemctl restart systemd-logind
|
||||
fi
|
||||
|
||||
# 启动服务
|
||||
systemctl daemon-reload
|
||||
systemctl enable postgresql
|
||||
@@ -170,7 +177,4 @@ systemctl start postgresql
|
||||
|
||||
panel writePlugin postgresql${1} ${postgresqlVersion}
|
||||
|
||||
# 测试中发现不重启一下,会导致无法连接
|
||||
systemctl restart postgresql
|
||||
|
||||
echo -e "${HR}\nPostgreSQL-${1} 安装完成\n${HR}"
|
||||
|
||||
Reference in New Issue
Block a user