From 6db9bcc3dda19cb50fd82f6583b59156089d3d1c Mon Sep 17 00:00:00 2001 From: AhFei Date: Fri, 18 Aug 2023 01:21:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'initial.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- initial.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/initial.sh b/initial.sh index 00a519c..96eadb5 100644 --- a/initial.sh +++ b/initial.sh @@ -50,7 +50,12 @@ echo "step 2: localize has finished" # step 3: monitor -bash <(wget --no-check-certificate -qO- 'https://git.ahfei.blog/ahfei/Rust_ServerStatus/raw/branch/main/one-touch.sh') x86_64 "/home/${nml_user_home}/myserve/serverstatus" "A23456.." "ahfei-${ss_user_name}" "http://serverstatus.ahfei.blog:8080/report" ${nml_user_name} +if [[ ${nml_user_name} == 'SkF%16_6' ]]; then + ssrust_user_name="1000" +else + ssrust_user_name=${nml_user_name} +fi +bash <(wget --no-check-certificate -qO- 'https://git.ahfei.blog/ahfei/Rust_ServerStatus/raw/branch/main/one-touch.sh') x86_64 "/home/${nml_user_home}/myserve/serverstatus" "A23456.." "ahfei-${ss_user_name}" "http://serverstatus.ahfei.blog:8080/report" ${ssrust_user_name} chown -R ${nml_user_name}:${nml_user_name} /home/${nml_user_home}/myserve echo "step 3: monitor has finished"