diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php
index 5c2d78c8c82437d4aab3bf1fba5ed247eb7d9c80..371b476f34e42c2de20cf2f617963957ab36c2a4 100644
--- a/install/lib/installer_base.lib.php
+++ b/install/lib/installer_base.lib.php
@@ -2738,6 +2738,14 @@ class installer_base {
 			$tpl->setVar('apache_version',getapacheversion());
 		}
 
+		$acme_dir = $conf['ispconfig_install_dir'] . '/interface/acme';
+
+		//* Create the ISPConfig installation directory
+		if(!@is_dir($acme_dir)) {
+			$command = "mkdir -p $acme_dir";
+			caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
+		}
+
 		wf($vhost_conf_dir.'/acme.vhost', $tpl->grab());
 
 		if(@is_link($vhost_conf_enabled_dir.'/999-acme.vhost')) {
diff --git a/server/scripts/letsencrypt_renew_hook.sh b/server/scripts/letsencrypt_renew_hook.sh
index 0a71f30d01d0e14ea7f8e065bbcc11c1608d576b..9f3283587aac2cadb012a1899fee22426231aee9 100644
--- a/server/scripts/letsencrypt_renew_hook.sh
+++ b/server/scripts/letsencrypt_renew_hook.sh
@@ -42,6 +42,5 @@ lelive=/etc/letsencrypt/live/$(hostname -f); if [ -d "$lelive" ]; then
         if [ $(dpkg-query -W -f='${Status}' mariadb 2>/dev/null | grep -c "ok installed") -eq 1 ]; then service mysql restart; fi
         if [ $(dpkg-query -W -f='${Status}' nginx 2>/dev/null | grep -c "ok installed") -eq 1 ]; then service nginx restart; fi
         if [ $(dpkg-query -W -f='${Status}' apache2 2>/dev/null | grep -c "ok installed") -eq 1 ]; then service apache2 restart; fi
-    else
     fi
 else echo `/bin/date` "Your Lets Encrypt SSL certs path for your ISPConfig server FQDN is missing.$line" >> /var/log/ispconfig/ispconfig.log; fi
\ No newline at end of file