diff --git a/lib/os/class.ISPConfigDebianOS.inc.php b/lib/os/class.ISPConfigDebianOS.inc.php index 06c03d07b8933adab6ce11088ff6aacc0498039b..09735b255c5659bf5351d73be007cae08c3fbe5e 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';