mirror of
https://github.com/snowykami/server-status-client.git
synced 2024-11-22 23:27:45 +08:00
✨ 修复脚本执行错误
This commit is contained in:
parent
42c4db6c01
commit
67475ef499
@ -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"
|
||||
echo "server-status-client installed successfully"
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user