diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-12-11 13:14:10 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-12-11 13:14:10 -0800 |
commit | ec4ffc0c2c269660c3e4a3ab2315d098e82bc676 (patch) | |
tree | 0a1aaba2278a685718bc2918cbe5009a4252075a /node | |
parent | a22a3ed7e8754fbfb2f48e4a32b79d6b7468e25c (diff) | |
download | infinitytier-ec4ffc0c2c269660c3e4a3ab2315d098e82bc676.tar.gz infinitytier-ec4ffc0c2c269660c3e4a3ab2315d098e82bc676.zip |
Software update fetcher seems to work, going back to updater/installer itself.
Diffstat (limited to 'node')
-rw-r--r-- | node/SoftwareUpdater.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/node/SoftwareUpdater.cpp b/node/SoftwareUpdater.cpp index 4cb2f7e4..c515d5db 100644 --- a/node/SoftwareUpdater.cpp +++ b/node/SoftwareUpdater.cpp @@ -176,6 +176,8 @@ void SoftwareUpdater::_cbHandleGetLatestVersionBinary(void *arg,int code,const s ::close(fd); ::chmod(updatePath.c_str(),0755); + upd->_status = UPDATE_STATUS_IDLE; + _r->node->terminate(Node::NODE_RESTART_FOR_UPGRADE,updatePath.c_str()); #endif |