Skip to content

Commit bbb8e0b

Browse files
author
Till Brehm
committed
Merge branch 'centos8' into 'stable-3.1'
misc centos 8 fixes See merge request ispconfig/ispconfig3!996
2 parents 48f2ae5 + fe4fd73 commit bbb8e0b

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

install/tpl/fedora_pureftpd_conf.master

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,6 @@ MinUID 500
241241

242242

243243

244-
# Do not use the /etc/ftpusers file to disable accounts. We're already
245-
# using MinUID to block users with uid < 500
246-
247-
UseFtpUsers no
248-
249-
250-
251244
# Allow FXP transfers for authenticated users.
252245

253246
AllowUserFXP no

server/lib/classes/cron.d/100-monitor_system_update.inc.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ public function onRunJob() {
159159
* Fetch the output
160160
*/
161161
$data['output'] = shell_exec('zypper lu');
162+
162163
} elseif(file_exists('/etc/redhat-release')) {
163164
/*
164165
* update and find the upgrade.
@@ -168,13 +169,14 @@ public function onRunJob() {
168169
/* try to figure out the default package manager first */
169170
if(file_exists('/usr/bin/dnf') && (is_link('/usr/bin/yum'))) {
170171
$rhPkgMgr = 'dnf';
171-
} elseif(file_exists('/usr/bin/dnf') && (!file_exists('/usr/bin/yum')) || (!is_link('/usr/bin/yum'))) {
172+
} elseif(file_exists('/usr/bin/dnf') && (!file_exists('/usr/bin/yum'))) {
172173
$rhPkgMgr = 'dnf';
173174
} else {
174175
$rhPkgMgr = 'yum';
175176
}
176177

177-
$aptData = shell_exec($rhPkgMgr. ' -q list updates');
178+
$aptData = shell_exec($rhPkgMgr. ' -q list updates');
179+
178180
if ($aptData == '') {
179181
/* There is nothing to update! */
180182
$state = 'ok';
@@ -188,7 +190,8 @@ public function onRunJob() {
188190

189191
/*
190192
* Fetch the output
191-
*/
193+
*/
194+
192195
$data['output'] = shell_exec($rhPkgMgr. ' -q list updates');
193196

194197
} else {

server/plugins-available/nginx_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2728,7 +2728,7 @@ private function php_fpm_pool_update ($data, $web_config, $pool_dir, $pool_name,
27282728
foreach($rh_releasefiles as $rh_file) {
27292729
if(file_exists($rh_file) && (filesize($rh_file) > 0)) {
27302730
$tmp = file_get_contents($rh_file);
2731-
if(preg_match('/[67]+\.[0-9]+/m', $tmp)) {
2731+
if(preg_match('/[678]+\.[0-9]+/m', $tmp)) {
27322732
$tpl->setVar('fpm_group', $data['new']['system_group']);
27332733
$tpl->setVar('fpm_listen_group', $data['new']['system_group']);
27342734
}

0 commit comments

Comments
 (0)