From 67475ef499e8778a7f7f7951d4cdd5f4d1309b18 Mon Sep 17 00:00:00 2001 From: snowykami Date: Sat, 5 Oct 2024 21:20:22 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=BF=AE=E5=A4=8D=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=89=A7=E8=A1=8C=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 4 ++-- deploy/server-status-client.service | 13 ------------- 2 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 deploy/server-status-client.service diff --git a/deploy.sh b/deploy.sh index d6f3da7..5d8a587 100755 --- a/deploy.sh +++ b/deploy.sh @@ -10,7 +10,7 @@ fi install_dir="/opt" echo -n "Install directory? (default: $install_dir/server-status-client): " && read -r install_dir_input if [ -n "$install_dir_input" ]; then - install_dir="$install_dir_input" + install_dir="$install_dir_input"; fi # check server @@ -99,4 +99,4 @@ EOF" systemctl enable server-status-client systemctl start server-status-client -echo "server-status-client installed successfully" \ No newline at end of file +echo "server-status-client installed successfully" diff --git a/deploy/server-status-client.service b/deploy/server-status-client.service deleted file mode 100644 index 893091e..0000000 --- a/deploy/server-status-client.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=Server Status Client -After=network-online.target - -[Service] -Type=simple -ExecStart=/opt/server-status-client/.venv/bin/python /opt/server-status-client/main.py http://192.168.31.149:8091 lts114514 localhost run -n Kami --labels physical ubuntu --location Chongqing --link http://kslan.liteyuki.icu:53851 -WorkingDirectory=/opt/server-status-client -Restart=on-failure -RestartSec=10 - -[Install] -WantedBy=multi-user.target \ No newline at end of file