mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 16:10:59 +08:00
feat: 安装前先清理文件
This commit is contained in:
@@ -204,12 +204,15 @@ Auto_Swap() {
|
||||
}
|
||||
|
||||
Init_Panel() {
|
||||
systemctl stop panel
|
||||
systemctl disable panel
|
||||
rm -f /etc/systemd/system/panel.service
|
||||
rm -rf ${setup_Path}/panel
|
||||
mkdir ${setup_Path}/server
|
||||
mkdir ${setup_Path}/server/cron
|
||||
mkdir ${setup_Path}/server/cron/logs
|
||||
chmod -R 755 ${setup_Path}/server
|
||||
mkdir ${setup_Path}/panel
|
||||
rm -rf ${setup_Path}/panel/*
|
||||
# 下载面板zip包并解压
|
||||
if [ "${ARCH}" == "x86_64" ]; then
|
||||
if ${inChina}; then
|
||||
|
||||
Reference in New Issue
Block a user