Skip to content

Commit 1373a52

Browse files
author
Marius Burkard
committed
Merge branch '6172-reverse-search-order-for-certbot-and-letsencrypt-binary' into 'develop'
Resolve "Reverse search order for certbot and letsencrypt binary" Closes #6172 See merge request ispconfig/ispconfig3!1485
2 parents 2a958a7 + 7d4db1d commit 1373a52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2946,7 +2946,7 @@ public function make_ispconfig_ssl_cert() {
29462946
}
29472947

29482948
// Get the default LE client name and version
2949-
$le_client = explode("\n", shell_exec('which letsencrypt certbot /root/.local/share/letsencrypt/bin/letsencrypt /opt/eff.org/certbot/venv/bin/certbot'));
2949+
$le_client = explode("\n", shell_exec('which certbot /root/.local/share/letsencrypt/bin/letsencrypt /opt/eff.org/certbot/venv/bin/certbot letsencrypt'));
29502950
$le_client = reset($le_client);
29512951

29522952
// Check for Neilpang acme.sh as well

server/lib/classes/letsencrypt.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function get_acme_command($domains, $key_file, $bundle_file, $cert_file,
8080
}
8181

8282
public function get_certbot_script() {
83-
$letsencrypt = explode("\n", shell_exec('which letsencrypt certbot /root/.local/share/letsencrypt/bin/letsencrypt /opt/eff.org/certbot/venv/bin/certbot'));
83+
$letsencrypt = explode("\n", shell_exec('which certbot /root/.local/share/letsencrypt/bin/letsencrypt /opt/eff.org/certbot/venv/bin/certbot letsencrypt'));
8484
$letsencrypt = reset($letsencrypt);
8585
if(is_executable($letsencrypt)) {
8686
return $letsencrypt;

0 commit comments

Comments
 (0)