parent
acf29b3eec
commit
db77d68560
|
@ -21,8 +21,8 @@ latest_version=$(curl -m 10 -sL "https://api.github.com/repos/zdz/ServerStatus-R
|
|||
|
||||
# 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"
|
||||
|
||||
unzip -o "client-${OS_ARCH}-unknown-linux-musl.zip"
|
||||
rm "client-${OS_ARCH}-unknown-linux-musl.zip"
|
||||
|
||||
# client systemd service
|
||||
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"
|
||||
|
||||
unzip -o "server-${OS_ARCH}-unknown-linux-musl.zip"
|
||||
rm "server-${OS_ARCH}-unknown-linux-musl.zip"
|
||||
|
||||
# server systemd service
|
||||
cat > /etc/systemd/system/stat_server.service <<EOF
|
||||
|
|
Loading…
Reference in New Issue