Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
cc93b6a0
Commit
cc93b6a0
authored
Aug 10, 2016
by
Marius Burkard
Browse files
- Fixed strict php error in letsencrypt cron
parent
05265017
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/cron.d/900-letsencrypt.inc.php
View file @
cc93b6a0
...
...
@@ -36,7 +36,8 @@ class cronjob_letsencrypt extends cronjob {
public
function
onRunJob
()
{
global
$app
,
$conf
;
$letsencrypt
=
array_shift
(
explode
(
"
\n
"
,
shell_exec
(
'which letsencrypt certbot /root/.local/share/letsencrypt/bin/letsencrypt'
))
);
$letsencrypt
=
explode
(
"
\n
"
,
shell_exec
(
'which letsencrypt certbot /root/.local/share/letsencrypt/bin/letsencrypt'
));
$letsencrypt
=
reset
(
$letsencrypt
);
if
(
is_executable
(
$letsencrypt
))
{
$version
=
trim
(
exec
(
$letsencrypt
.
' --version 2>/dev/null'
));
if
(
preg_match
(
'/^(\S+)\s+(\d+(\.\d+)+)$/'
,
$version
,
$matches
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment