some improvements of the remote action "update ISPConfig"
| | |
| | | $wb['Remote Users'] = 'Remote Benutzer'; |
| | | $wb['Remote Actions'] = 'Remote Aktionen'; |
| | | $wb['Do OS-Update'] = 'Betriebssystem Update ausführen'; |
| | | $wb['Do ISPConfig-Update'] = 'ISPConfig auf den neuesten Stand bringen'; |
| | | ?> |
| | |
| | | $wb['Remote Users'] = 'Remote Users'; |
| | | $wb['Remote Actions'] = 'Remote Actions'; |
| | | $wb['Do OS-Update'] = 'Do OS-Update'; |
| | | $wb['Do ISPConfig-Update'] = 'Do ISPConfig-Update'; |
| | | ?> |
| | |
| | | 'target' => 'content', |
| | | 'link' => 'admin/remote_action_osupdate.php'); |
| | | |
| | | $items[] = array( 'title' => 'Do ISPConfig-Update', |
| | | 'target' => 'content', |
| | | 'link' => 'admin/remote_action_ispcupdate.php'); |
| | | |
| | | $module['nav'][] = array( 'title' => 'Remote Actions', |
| | | 'open' => 1, |
| | | 'items' => $items); |
| | |
| | | <div class="panel panel_language_add">
|
| | |
|
| | | <div class="pnl_formsarea">
|
| | | <fieldset class="inlineLabels"><legend>{tmpl_var name='do_osupdate_caption'}</legend>
|
| | | <fieldset class="inlineLabels"><legend>{tmpl_var name='do_ispcupdate_caption'}</legend>
|
| | | <div class="ctrlHolder">
|
| | | <label for="server_select">{tmpl_var name='select_server_txt'}</label>
|
| | | <select name="server_select" id="server" class="selectInput" onchange="document.getElementById('OKMsg').style.visibility = 'hidden'; ">
|
| | |
| | | </tmpl_if>
|
| | |
|
| | | <div class="buttonHolder buttons">
|
| | | <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_do_txt'}" onClick="submitForm('pageForm','admin/remote_action_osupdate.php');"><span>{tmpl_var name='btn_do_txt'}</span></button>
|
| | | <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_do_txt'}" onClick="submitForm('pageForm','admin/remote_action_ispcupdate.php');"><span>{tmpl_var name='btn_do_txt'}</span></button>
|
| | | </div>
|
| | | </div>
|
| | |
|
| | |
| | | /*
|
| | | * Do the update
|
| | | */
|
| | | exec("cd /tmp");
|
| | | $oldDir = getcwd();
|
| | | chdir("/tmp");
|
| | |
|
| | | exec("rm /tmp/ISPConfig-" . $new_version . ".tar.gz");
|
| | | exec("rm /tmp/ispconfig3_install -R");
|
| | | exec("wget http://www.ispconfig.org/downloads/ISPConfig-" . $new_version . ".tar.gz");
|
| | | exec("tar xvfz ISPConfig-" . $new_version . ".tar.gz");
|
| | | exec("cd ispconfig3_install/install");
|
| | |
|
| | | chdir("/tmp/ispconfig3_install/install");
|
| | | exec("touch autoupdate");
|
| | | exec("php -q autoupdate.php");
|
| | |
|