chjacobsen
2011-04-01 e0db878eb71dd40d6c000f1debedad3f16f15ba6
server/mods-available/remoteaction_core_module.inc.php
@@ -150,6 +150,10 @@
   }
   private function _doIspCUpdate($action) {
      // Ensure that this code is not executed twice as this would cause a loop in case of a failure
      $this->_actionDone($action['action_id'], 'ok');
      /*
       * Get the version-number of the newest version 
       */
@@ -175,17 +179,16 @@
      exec("tar xvfz ISPConfig-" . $new_version . ".tar.gz");
      /*
       * Start the automated update
       * Initialize the automated update
       * (the update is then done next start of server.sh
       */
      chdir("/tmp/ispconfig3_install/install");
      exec("touch autoupdate");
      exec("php -q autoupdate.php");
      /*
       * do some clean-up
       */
      exec("rm /tmp/ISPConfig-" . $new_version . ".tar.gz");
      exec("rm /tmp/ispconfig3_install -R");
      /*
       * go back to the "old path"
@@ -195,7 +198,7 @@
      /*
       * All well done!
       */
      $this->_actionDone($action['action_id'], 'ok');
      //$this->_actionDone($action['action_id'], 'ok');
   }
}
?>