aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Alouit <alexandre.alouit@gmail.com>2016-03-08 14:56:10 +0100
committerAlexandre Alouit <alexandre.alouit@gmail.com>2016-03-08 14:56:10 +0100
commit2a9b20e53ef4470f56eaf5e3b49e9b7ac91cdc85 (patch)
tree329be477f8cc90181dc1e9c7bddcd8979a43200f
parent77d70f96a7e5d43625b6aa3d45a9e96437f867c9 (diff)
parent8c9e13daa904ad4a9aa2905ace785e6c0bf7fc4b (diff)
Merge pull request #40 from The-IT-Philosopher/ISPConfig-3.0.5.4p8
Support for new certificate renewer
Diffstat (limited to '')
-rw-r--r--install.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/install.php b/install.php
index c1417c7..d066621 100644
--- a/install.php
+++ b/install.php
@@ -78,12 +78,12 @@ if(!is_file("/root/.local/share/letsencrypt/bin/letsencrypt")) {
echo "ERROR: Let's Encrypt ( /root/.local/share/letsencrypt/bin/letsencrypt ) is missing, install it corecctly!\n";
exit;
}
-
+/*
if(!is_file("/root/.local/share/letsencrypt/bin/letsencrypt-renewer")) {
echo "ERROR: Let's Encrypt ( /root/.local/share/letsencrypt/bin/letsencrypt-renewer ) is missing, install it corecctly!\n";
exit;
}
-
+*/
if(is_file("/etc/letsencrypt/cli.ini")) {
echo "Let's Encrypt configuration file exist, backup up and remove.\n";
exec("cp /etc/letsencrypt/cli.ini " . $backup_dir . date("Ymdhis") . "-letsencrypt.cli.ini");
@@ -137,10 +137,10 @@ if(!file_exists($backup_dir . $backup_file2 )) {
exec("crontab -l", $output);
-if(!in_array("30 02 * * * /root/.local/share/letsencrypt/bin/letsencrypt-renewer >> /var/log/ispconfig/cron.log; done", $output)) {
+if(!in_array("30 02 * * * /root/.local/share/letsencrypt/bin/letsencrypt renew >> /var/log/ispconfig/cron.log;", $output)) {
echo "Add a cronjob for renewal certs\n";
- $output[] = "30 02 * * * /root/.local/share/letsencrypt/bin/letsencrypt-renewer >> /var/log/ispconfig/cron.log; done";
+ $output[] = "30 02 * * * /root/.local/share/letsencrypt/bin/letsencrypt renew >> /var/log/ispconfig/cron.log;";
exec("touch ./crontab.tmp");
if(!is_file("./crontab.tmp")) {