Skip to content
GitLab
Explore
Sign in
Register
Webslice
ISPConfig 3
Compare revisions
52019c546626bf0d7b511915eac924d34308f26d to 7c67b8e5d7ee6d22c6aab7e1aa73adc8a1768b2b
Commits on Source (2)
Reconfigure incron if the PHP version changes
· c9145d36
Webslice
authored
Apr 07, 2020
c9145d36
Merge branch 'reconfigure-incron-if-php-version-changes' into 'stable-3.1'
· 7c67b8e5
Till Brehm
authored
Apr 09, 2020
Reconfigure incron if the PHP version changes See merge request
!983
7c67b8e5
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/z_php_fpm_incron_reload_plugin.inc.php
View file @
7c67b8e5
...
...
@@ -45,8 +45,8 @@ class z_php_fpm_incron_reload_plugin {
function
incronUpdate
(
$eventName
,
$data
)
{
global
$app
;
if
(
$
data
[
'new'
][
'
document
_r
oot
'
]
===
$data
[
'old'
][
'document_root'
]
)
{
$app
->
log
(
'Document root unchanged. Not updating incron configuration.'
,
LOGLEVEL_DEBUG
);
if
(
$
this
->
document
R
oot
Unchanged
(
$data
)
&&
$this
->
phpVersionUnchanged
(
$data
)
)
{
$app
->
log
(
'Document root
and PHP version
unchanged. Not updating incron configuration.'
,
LOGLEVEL_DEBUG
);
return
;
}
...
...
@@ -59,6 +59,16 @@ class z_php_fpm_incron_reload_plugin {
$this
->
teardown
(
$data
[
'old'
]);
}
private
function
documentRootUnchanged
(
$data
)
{
return
$data
[
'new'
][
'document_root'
]
===
$data
[
'old'
][
'document_root'
];
}
private
function
phpVersionUnchanged
(
$data
)
{
return
$data
[
'new'
][
'fastcgi_php_version'
]
===
$data
[
'old'
][
'fastcgi_php_version'
];
}
private
function
setup
(
$data
)
{
$triggerFile
=
$this
->
getTriggerFilePath
(
$data
[
'document_root'
]);
...
...