From ce58c41a0161275eb725f73682edbd622e19f494 Mon Sep 17 00:00:00 2001 From: Thom Pol Date: Fri, 26 Feb 2021 21:32:05 +0100 Subject: [PATCH] Install certbot from repo (#38) --- lib/os/class.ISPConfigDebianOS.inc.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/os/class.ISPConfigDebianOS.inc.php b/lib/os/class.ISPConfigDebianOS.inc.php index 06c03d0..09735b2 100644 --- a/lib/os/class.ISPConfigDebianOS.inc.php +++ b/lib/os/class.ISPConfigDebianOS.inc.php @@ -932,13 +932,7 @@ mailman-unsubscribe: "|/var/lib/mailman/mail/mailman unsubscribe mailman"'; if (ISPConfig::wantsCertbot()) { ISPConfigLog::info('Installing Certbot (Let\'s Encrypt).', true); - $cmd = 'cd /usr/local/bin ; wget https://dl.eff.org/certbot-auto ; chmod a+x certbot-auto ; ./certbot-auto --install-only'; - $result = $this->exec($cmd); - if($result === false) { - ISPConfigLog::warn('Installation of Certbot (Let\'s Encrypt) failed.', true); - } else { - ISPConfigLog::info('Certbot installed.', true); - } + $this->installPackages('certbot'); } else { ISPConfigLog::info('Installing acme.sh (Let\'s Encrypt).', true); $cmd = 'cd /tmp ; wget -O - https://get.acme.sh 2>/dev/null | sh 2>/dev/null'; -- GitLab