()
| 10 | ) |
| 11 | |
| 12 | func triggerCopyover() error { |
| 13 | binaryPath, err := os.Executable() |
| 14 | if err != nil { |
| 15 | return err |
| 16 | } |
| 17 | |
| 18 | serverAlive.Store(false) |
| 19 | |
| 20 | rooms.SaveAllRooms() |
| 21 | users.SaveAllUsers() |
| 22 | plugins.Save() |
| 23 | |
| 24 | return copyover.Execute(binaryPath, os.Args[1:]) |
| 25 | } |
no test coverage detected