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