Skip to content

Conversation

@matteosuppo
Copy link
Contributor

The updater code has been moved to its own package.
The scheduler has been remove.
Some functions about unzipping files went into utilities.go

To trigger the update now you must esplicitly call it with a POST request:

curl --request POST --url http://localhost:8991/update

It will return an error if the update has not been successfull, or a notice that the daemon is going to reboot.

The updater code has been moved to its own package.
The scheduler has been remove.
Some functions about unzipping files went into utilities.go
@ArduinoBot
Copy link

Test FAILed.

update.go Outdated
log.Println("Restarting because update!")

c.JSON(200, gin.H{"success": "Please wait a moment while the agent reboots itself"})
path, _ := osext.Executable()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not ignore errors but handle it and exit if fails.

@ArduinoBot
Copy link

Test FAILed.

@ArduinoBot
Copy link

Test FAILed.

@ArduinoBot
Copy link

Test FAILed.

@ArduinoBot
Copy link

Test FAILed.

@mastrolinux mastrolinux merged commit 90677b6 into devel Apr 7, 2016
@facchinm facchinm deleted the updater branch May 13, 2016 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants