修复脚本执行错误

This commit is contained in:
远野千束 2024-10-05 21:20:22 +08:00
parent 42c4db6c01
commit 67475ef499
2 changed files with 2 additions and 15 deletions

View File

@ -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"

View File

@ -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