Skip to content

Commit

Permalink
fix: 修复在有 swap 的情况下无法安装的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 15, 2023
1 parent 50daebe commit 97562f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/install_panel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 97562f1

Please sign in to comment.