This commit is contained in:
lwl0608 2024-05-17 14:37:03 +08:00
parent d21f625787
commit e9116d17d4
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ func registerSD(ip string, port int) error {
} }
func setServerStatusFD(status string) { func setServerStatusFD(status string) {
serverStatusFdPath := "/Users/erwin/SERVER_STATUS_FD" serverStatusFdPath := "/app/SERVER_STATUS_FD"
cmd := exec.Command("sh", "-c", fmt.Sprintf("echo %s > %s", status, serverStatusFdPath)) cmd := exec.Command("sh", "-c", fmt.Sprintf("echo %s > %s", status, serverStatusFdPath))
err := cmd.Run() err := cmd.Run()
if err != nil { if err != nil {