mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 09:13:49 +08:00
fix: 修复在有 swap 的情况下无法安装的 bug
This commit is contained in:
@@ -63,6 +63,10 @@ Prepare_System() {
|
||||
useradd -s /sbin/nologin -g www www
|
||||
fi
|
||||
|
||||
if [ ! -d ${setup_Path} ]; then
|
||||
mkdir ${setup_Path}
|
||||
fi
|
||||
|
||||
timedatectl set-timezone Asia/Shanghai
|
||||
|
||||
[ -s /etc/selinux/config ] && sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
|
||||
@@ -147,10 +151,6 @@ Auto_Swap() {
|
||||
return
|
||||
fi
|
||||
|
||||
if [ ! -d ${setup_Path} ]; then
|
||||
mkdir ${setup_Path}
|
||||
fi
|
||||
|
||||
# 设置swap
|
||||
swapFile="${setup_Path}/swap"
|
||||
btrfsCheck=$(df -T /www | awk '{print $2}' | tail -n 1)
|
||||
|
||||
Reference in New Issue
Block a user