Skip to content
Snippets Groups Projects
Commit 0af38c47 authored by Till Brehm's avatar Till Brehm
Browse files

Fixed #3930 usage of split in letsencrypt cron module.

parent bd6f5952
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ class cronjob_letsencrypt extends cronjob {
public function onRunJob() {
global $app, $conf;
$letsencrypt = array_shift( split("\n", `which letsencrypt /root/.local/share/letsencrypt/bin/letsencrypt`) );
$letsencrypt = array_shift( explode("\n", `which letsencrypt /root/.local/share/letsencrypt/bin/letsencrypt`) );
if(is_executable($letsencrypt)) {
exec($letsencrypt . ' -n renew');
$app->services->restartServiceDelayed('httpd', 'reload');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment