diff options
author | Andre van Schoubroeck <andre@philosopher.it> | 2016-02-28 19:01:12 +0200 |
---|---|---|
committer | Andre van Schoubroeck <andre@philosopher.it> | 2016-02-28 19:01:12 +0200 |
commit | 8c9e13daa904ad4a9aa2905ace785e6c0bf7fc4b (patch) | |
tree | 329be477f8cc90181dc1e9c7bddcd8979a43200f | |
parent | 77d70f96a7e5d43625b6aa3d45a9e96437f867c9 (diff) |
Support for new certificate renewer
-rw-r--r-- | install.php | 8 |
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")) { |