更新 'one-touch.sh'

删除压缩包
main
AhFei 2023-06-08 19:59:00 +08:00
parent acf29b3eec
commit db77d68560
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ latest_version=$(curl -m 10 -sL "https://api.github.com/repos/zdz/ServerStatus-R
# step 1: 下载和解压客户端 # step 1: 下载和解压客户端
wget --no-check-certificate -qO "client-${OS_ARCH}-unknown-linux-musl.zip" "https://github.com/zdz/ServerStatus-Rust/releases/download/${latest_version}/client-${OS_ARCH}-unknown-linux-musl.zip" wget --no-check-certificate -qO "client-${OS_ARCH}-unknown-linux-musl.zip" "https://github.com/zdz/ServerStatus-Rust/releases/download/${latest_version}/client-${OS_ARCH}-unknown-linux-musl.zip"
unzip -o "client-${OS_ARCH}-unknown-linux-musl.zip" unzip -o "client-${OS_ARCH}-unknown-linux-musl.zip"
rm "client-${OS_ARCH}-unknown-linux-musl.zip"
# client systemd service # client systemd service
cat > /etc/systemd/system/stat_client.service <<EOF cat > /etc/systemd/system/stat_client.service <<EOF
@ -59,8 +59,8 @@ fi
# 下载和解压服务端 # 下载和解压服务端
wget --no-check-certificate -qO "server-${OS_ARCH}-unknown-linux-musl.zip" "https://github.com/zdz/ServerStatus-Rust/releases/download/${latest_version}/server-${OS_ARCH}-unknown-linux-musl.zip" wget --no-check-certificate -qO "server-${OS_ARCH}-unknown-linux-musl.zip" "https://github.com/zdz/ServerStatus-Rust/releases/download/${latest_version}/server-${OS_ARCH}-unknown-linux-musl.zip"
unzip -o "server-${OS_ARCH}-unknown-linux-musl.zip" unzip -o "server-${OS_ARCH}-unknown-linux-musl.zip"
rm "server-${OS_ARCH}-unknown-linux-musl.zip"
# server systemd service # server systemd service
cat > /etc/systemd/system/stat_server.service <<EOF cat > /etc/systemd/system/stat_server.service <<EOF