diff options
| author | michael pereira | 2011-03-18 19:24:47 +0100 |
|---|---|---|
| committer | michael pereira | 2011-03-18 19:24:47 +0100 |
| commit | fd0e66bf49af0bc56e68830b4c59294f0ec8c101 (patch) | |
| tree | a5bd9e4e255c9a841b35931fa8f5d9c8d1ece5a2 /application/modules/dev/controllers/BootisoController.php | |
| parent | Datenbank update, PoolController (diff) | |
| download | pbs2-fd0e66bf49af0bc56e68830b4c59294f0ec8c101.tar.gz pbs2-fd0e66bf49af0bc56e68830b4c59294f0ec8c101.tar.xz pbs2-fd0e66bf49af0bc56e68830b4c59294f0ec8c101.zip | |
BootOs Update implementiert, BootISO anlegen und some fixes
Diffstat (limited to 'application/modules/dev/controllers/BootisoController.php')
| -rw-r--r-- | application/modules/dev/controllers/BootisoController.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/application/modules/dev/controllers/BootisoController.php b/application/modules/dev/controllers/BootisoController.php index 2b0e624..86454cd 100644 --- a/application/modules/dev/controllers/BootisoController.php +++ b/application/modules/dev/controllers/BootisoController.php @@ -42,7 +42,22 @@ class dev_BootisoController extends Zend_Controller_Action $bootiso->setCreated(time()); try { + + exec("wget --spider ".$bootiso->getPath_fbgui()." 2>&1 | grep 'Remote file exists.'", $exists_fbgui); + + if(!array_pop($exists_fbgui)){ + $this->view->createbootisoForm = $createbootisoForm; + return; + } + $bootisomapper->save($bootiso); + + $path_fbgui = "../resources/bootmedium/fbgui/"; + + exec("wget -P ".$path_fbgui." -N ".$bootiso->getPath_fbgui()); + + + }catch(Zend_Exception $e) { echo "Caught exception: " . get_class($e) . "<br/>"; |
