Skip to content

Use a POST request to trigger update. #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 7, 2016
Merged

Use a POST request to trigger update. #73

merged 6 commits into from
Apr 7, 2016

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.


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