Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1268 from advancedtelematic/fix/send-device-data
Browse files Browse the repository at this point in the history
Send device data before UptaneCycle or RunForever.
  • Loading branch information
lbonn authored Jul 25, 2019
2 parents 9f0c189 + 1df4c16 commit 8c8877f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aktualizr_primary/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,10 @@ int main(int argc, char *argv[]) {
result::UpdateCheck update_result = aktualizr.CheckUpdates().get();
aktualizr.Install(update_result.updates).get();
} else if (run_mode == "once") {
aktualizr.SendDeviceData().get();
aktualizr.UptaneCycle();
} else {
aktualizr.SendDeviceData().get();
aktualizr.RunForever().get();
}
r = EXIT_SUCCESS;
Expand Down

0 comments on commit 8c8877f

Please sign in to comment.