From 97562f189e51fe9d221a8f9af302a86e8ec9d7ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sun, 15 Oct 2023 22:31:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9C=A8=E6=9C=89=20s?= =?UTF-8?q?wap=20=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/install_panel.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install_panel.sh b/scripts/install_panel.sh index ac4d33db..f9602dca 100644 --- a/scripts/install_panel.sh +++ b/scripts/install_panel.sh @@ -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)