Skip to content

Commit b5a0dc3

Browse files
committed
Merged revisions 2144-2150 from stable branch.
1 parent 6ae502f commit b5a0dc3

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

install/autoupdate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@
281281

282282
//** Restart services:
283283
swriteln('Restarting services ...');
284-
if($conf['mysql']['init_script'] != '' && is_executable($conf['init_scripts'].'/'.$conf['mysql']['init_script'])) system($conf['init_scripts'].'/'.$conf['mysql']['init_script'].' restart');
284+
if($conf['mysql']['init_script'] != '' && is_executable($conf['init_scripts'].'/'.$conf['mysql']['init_script'])) system($conf['init_scripts'].'/'.$conf['mysql']['init_script'].' reload');
285285
if($conf['services']['mail']) {
286286
if($conf['postfix']['init_script'] != '' && is_executable($conf['init_scripts'].'/'.$conf['postfix']['init_script'])) system($conf['init_scripts'].'/'.$conf['postfix']['init_script'].' restart');
287287
if($conf['saslauthd']['init_script'] != '' && is_executable($conf['init_scripts'].'/'.$conf['saslauthd']['init_script'])) system($conf['init_scripts'].'/'.$conf['saslauthd']['init_script'].' restart');

interface/lib/classes/tform.inc.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ function loadFormDef($file,$module = '') {
143143
if(!file_exists($lng_file)) $lng_file = "../$module/lib/lang/en_".$this->formDef["name"].".lng";
144144
include($lng_file);
145145
}
146-
146+
147147
if(is_array($wb_global)) {
148-
$wb = array_merge($wb_global,$wb);
148+
$wb = $wb_global + $wb;
149149
}
150150
if(isset($wb_global)) unset($wb_global);
151151

@@ -495,9 +495,7 @@ function getHTML($record, $tab, $action = 'NEW') {
495495
$out = '';
496496
foreach($field['value'] as $k => $v) {
497497
$selected = ($k == $field["default"])?' SELECTED':'';
498-
if(!empty($this->wordbook[$v]))
499-
$v = $this->wordbook[$v];
500-
$out .= "<option value='$k'$selected>$v</option>\r\n";
498+
$out .= "<option value='$k'$selected>".$this->lng($v)."</option>\r\n";
501499
}
502500
}
503501
if(isset($out)) $new_record[$key] = $out;

server/cron_daily.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function setConfigVar( $filename, $varName, $varValue ) {
185185
if(!@is_dir($statsdir)) mkdir($statsdir);
186186

187187
// awstats_buildstaticpages.pl -update -config=mydomain.com -lang=en -dir=/var/www/domain.com/web/stats -awstatsprog=/path/to/awstats.pl
188-
$command = "$awstats_buildstaticpages_pl -update -config='$domain' -lang=en -dir='$statsdir' -awstatsprog='$awstats_pl'";
188+
$command = "$awstats_buildstaticpages_pl -update -LogFile='$logfile' -config='$domain' -lang=en -dir='$statsdir' -awstatsprog='$awstats_pl'";
189189

190190
if($awstats_pl != '' && $awstats_buildstaticpages_pl != '' && fileowner($awstats_pl) == 0 && fileowner($awstats_buildstaticpages_pl) == 0) {
191191
exec($command);

server/mods-available/monitor_core_module.inc.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,10 @@ function doMonitor() {
203203
$this->monitorMemUsage();
204204
$this->monitorCpu();
205205
$this->monitorServices();
206-
$this->monitorOpenVzHost();
207-
$this->monitorOpenVzUserBeancounter();
206+
if(@file_exists('/proc/user_beancounters')) {
207+
$this->monitorOpenVzHost();
208+
$this->monitorOpenVzUserBeancounter();
209+
}
208210
$this->monitorMailLog();
209211
$this->monitorMailWarnLog();
210212
$this->monitorMailErrLog();

server/mods-available/remoteaction_core_module.inc.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ private function _doOsUpdate($action) {
150150
}
151151

152152
private function _doIspCUpdate($action) {
153+
154+
// Ensure that this code is not executed twice as this would cause a loop in case of a failure
155+
$this->_actionDone($action['action_id'], 'ok');
156+
153157
/*
154158
* Get the version-number of the newest version
155159
*/
@@ -195,7 +199,7 @@ private function _doIspCUpdate($action) {
195199
/*
196200
* All well done!
197201
*/
198-
$this->_actionDone($action['action_id'], 'ok');
202+
//$this->_actionDone($action['action_id'], 'ok');
199203
}
200204
}
201205
?>

0 commit comments

Comments
 (0)