From 04cd7c7c424d89b9105ddc3fb5de3e444295dc02 Mon Sep 17 00:00:00 2001 From: AhFei Date: Mon, 19 Jun 2023 00:32:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=8E=A2=E9=92=88=E4=B8=BARu?= =?UTF-8?q?st=5FServerStatus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- initial.sh | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/initial.sh b/initial.sh index e2aa4a5..84643d0 100644 --- a/initial.sh +++ b/initial.sh @@ -50,14 +50,7 @@ echo "step 2: localize has finished" # step 3: monitor -mkdir -p /home/${nml_user_home}/myserve/serverstatus && wget --no-check-certificate -qO /home/${nml_user_home}/myserve/serverstatus/client-linux.py 'https://raw.githubusercontent.com/cppla/ServerStatus/master/clients/client-linux.py' -chown -R ${nml_user_name}:${nml_user_name} /home/${nml_user_home}/myserve - -nohup python3 /home/${nml_user_home}/myserve/serverstatus/client-linux.py SERVER=serverstatus.ahfei.blog USER=ahfei-${ss_user_name} PASSWORD=A23456.. >/dev/null 2>&1 & - -echo "@reboot python3 /home/${nml_user_home}/myserve/serverstatus/client-linux.py SERVER=serverstatus.ahfei.blog USER=ahfei-${ss_user_name} PASSWORD=A23456.. >/dev/null 2>&1" >> /var/spool/cron/crontabs/${nml_user_name} -chown -R ${nml_user_name}:${nml_user_name} /var/spool/cron/crontabs/${nml_user_name} -chmod 600 /var/spool/cron/crontabs/${nml_user_name} +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} echo "step 3: monitor has finished"