Skip to content

Commit 7d3b76a

Browse files
author
Marius Burkard
committed
- fixed issues with acme path
1 parent df26e5e commit 7d3b76a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

install/lib/installer_base.lib.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2738,6 +2738,14 @@ private function make_acme_vhost($server_name, $server = 'apache') {
27382738
$tpl->setVar('apache_version',getapacheversion());
27392739
}
27402740

2741+
$acme_dir = $conf['ispconfig_install_dir'] . '/interface/acme';
2742+
2743+
//* Create the ISPConfig installation directory
2744+
if(!@is_dir($acme_dir)) {
2745+
$command = "mkdir -p $acme_dir";
2746+
caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
2747+
}
2748+
27412749
wf($vhost_conf_dir.'/acme.vhost', $tpl->grab());
27422750

27432751
if(@is_link($vhost_conf_enabled_dir.'/999-acme.vhost')) {

server/scripts/letsencrypt_renew_hook.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,5 @@ lelive=/etc/letsencrypt/live/$(hostname -f); if [ -d "$lelive" ]; then
4242
if [ $(dpkg-query -W -f='${Status}' mariadb 2>/dev/null | grep -c "ok installed") -eq 1 ]; then service mysql restart; fi
4343
if [ $(dpkg-query -W -f='${Status}' nginx 2>/dev/null | grep -c "ok installed") -eq 1 ]; then service nginx restart; fi
4444
if [ $(dpkg-query -W -f='${Status}' apache2 2>/dev/null | grep -c "ok installed") -eq 1 ]; then service apache2 restart; fi
45-
else
4645
fi
4746
else echo `/bin/date` "Your Lets Encrypt SSL certs path for your ISPConfig server FQDN is missing.$line" >> /var/log/ispconfig/ispconfig.log; fi

0 commit comments

Comments
 (0)