File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1236,7 +1236,8 @@ function update($event_name, $data) {
12361236 $ app ->log ("Create Let's Encrypt SSL Cert for: $ domain " , LOGLEVEL_DEBUG );
12371237
12381238 $ success = false ;
1239- $ letsencrypt = array_shift ( explode ("\n" , shell_exec ('which letsencrypt certbot /root/.local/share/letsencrypt/bin/letsencrypt ' )) );
1239+ $ letsencrypt = explode ("\n" , shell_exec ('which letsencrypt certbot /root/.local/share/letsencrypt/bin/letsencrypt ' ));
1240+ $ letsencrypt = reset ($ letsencrypt );
12401241 if (is_executable ($ letsencrypt )) {
12411242 $ success = $ this ->_exec ($ letsencrypt . " certonly -n --text --agree-tos --expand --authenticator webroot --server https://acme-v01.api.letsencrypt.org/directory --rsa-key-size 4096 --email postmaster@ $ domain --domains $ lddomain --webroot-path /usr/local/ispconfig/interface/acme " );
12421243 }
Original file line number Diff line number Diff line change @@ -1315,7 +1315,8 @@ function update($event_name, $data) {
13151315 $ app ->log ("Create Let's Encrypt SSL Cert for: $ domain " , LOGLEVEL_DEBUG );
13161316
13171317 $ success = false ;
1318- $ letsencrypt = array_shift ( explode ("\n" , shell_exec ('which letsencrypt certbot /root/.local/share/letsencrypt/bin/letsencrypt ' )) );
1318+ $ letsencrypt = explode ("\n" , shell_exec ('which letsencrypt certbot /root/.local/share/letsencrypt/bin/letsencrypt ' ));
1319+ $ letsencrypt = reset ($ letsencrypt );
13191320 if (is_executable ($ letsencrypt )) {
13201321 $ success = $ this ->_exec ($ letsencrypt . " certonly -n --text --agree-tos --expand --authenticator webroot --server https://acme-v01.api.letsencrypt.org/directory --rsa-key-size 4096 --email postmaster@ $ domain --domains $ lddomain --webroot-path /usr/local/ispconfig/interface/acme " );
13211322 }
You can’t perform that action at this time.
0 commit comments