diff options
author | Simon Rettberg | 2014-05-26 22:49:54 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-05-26 22:49:54 +0200 |
commit | a4f4147b6fe5f2a003a61cf8a8f7508c94130b31 (patch) | |
tree | de34472a2b9bd83909469affb884619b4858efc1 /apis/taskmanager.inc.php | |
parent | WIP (diff) | |
download | slx-admin-a4f4147b6fe5f2a003a61cf8a8f7508c94130b31.tar.gz slx-admin-a4f4147b6fe5f2a003a61cf8a8f7508c94130b31.tar.xz slx-admin-a4f4147b6fe5f2a003a61cf8a8f7508c94130b31.zip |
WIP
Diffstat (limited to 'apis/taskmanager.inc.php')
-rw-r--r-- | apis/taskmanager.inc.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apis/taskmanager.inc.php b/apis/taskmanager.inc.php index 78cd101c..7bb38a98 100644 --- a/apis/taskmanager.inc.php +++ b/apis/taskmanager.inc.php @@ -16,11 +16,15 @@ foreach ($_POST['ids'] as $id) { } $return[] = $status; // HACK HACK - should be pluggable - if (isset($status['statusCode']) && $status['statusCode'] === TASK_FINISHED - && $status['id'] === Property::getIPxeTaskId() && Property::getServerIp() !== Property::getIPxeIp()) { + if (isset($status['statusCode']) && $status['statusCode'] === TASK_FINISHED // iPXE Update + && $id === Property::getIPxeTaskId() && Property::getServerIp() !== Property::getIPxeIp()) { Property::setIPxeIp(Property::getServerIp()); } - // + if (isset($status['statusCode']) && $status['statusCode'] === TASK_FINISHED // MiniLinux Version check + && $id === Property::getVersionCheckTaskId()) { + Property::setVersionCheckInformation(Property::getServerIp()); + } + // -- END HACKS -- if (!isset($status['statusCode']) || ($status['statusCode'] !== TASK_WAITING && $status['statusCode'] !== TASK_PROCESSING)) { Taskmanager::release($id); } |