diff --git a/scripts/install_panel.sh b/scripts/install_panel.sh index ac4d33db65..f9602dca21 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)