oort/cmdctrl.go
func (o *Server) SelfUpgrade(version string, bindiff, checksum []byte) (bool, string) {
	o.cmdCtrlLock.Lock()
	defer o.cmdCtrlLock.Unlock()
	err := o.binaryUpgrade.Upgrade(version)
	if err != nil {
		return false, err.Error()
	}
	return true, ""
}
func (o *Server) SelfUpgrade(version string, bindiff, checksum []byte) (bool, string) {
	o.cmdCtrlLock.Lock()
	defer o.cmdCtrlLock.Unlock()
	err := o.binaryUpgrade.Upgrade(version)
	if err != nil {
		return false, err.Error()
	}
	return true, ""
}
// SelfUpgrade deploys an updated binary to disk using cmdctrl.GithubUpdater