alexalouit / ISPConfig-letsencrypt

Let's Encrypt support for ISPConfig
68 stars 23 forks source link

letsencrypt-renewer not found #38

Closed jnovermars closed 8 years ago

jnovermars commented 8 years ago

He i am not sure if its realy a bug, but when i install Letsencrypt on the way its documented it give a error that the Letsencrypt-renew is not installed:

Installed following the instructions of: https://github.com/letsencrypt/letsencrypt

Error (CLI output): root@server:/tmp/ISPConfig-letsencrypt# php -q install.php PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/ming.ini on line 1 in Unknown on line 0

Create backup on /var/backup/ directory /bin/tar: Removing leading /' from member names Backup finished

ERROR: Let's Encrypt ( /root/.local/share/letsencrypt/bin/letsencrypt-renewer ) is missing, install it corecctly!

root@server:/tmp/ISPConfig-letsencrypt# letsencrypt renew bash: letsencrypt: command not found

i hope you have a solution for this

joey91133 commented 8 years ago

They change renew to command. https://github.com/letsencrypt/letsencrypt/issues/2376

cvladan commented 8 years ago
sed -i -re 's/letsencrypt-renewer/letsencrypt renew/gi' install.php
php -q install.php

should work :)

lucatze commented 8 years ago

Hm. I tried your command, but it didn't work. I checked the file, its definitely present at the specified path. The sed command apparently worked also.

root@server:~/ISPConfig-letsencrypt# php -q install.php
Create backup on /var/backup/ directory
/bin/tar: Removing leading `/' from member names
Backup finished
ERROR: Let's Encrypt ( /root/.local/share/letsencrypt/bin/letsencrypt renew ) is missing, install it correctly!
root@server:~/ISPConfig-letsencrypt#
root@server:~# .local/share/letsencrypt/bin/letsencrypt renew

No renewals were attempted.
root@server:~#

The install.php Lines:

if(!is_file("/root/.local/share/letsencrypt/bin/letsencrypt renew")) {
        echo "ERROR: Let's Encrypt ( /root/.local/share/letsencrypt/bin/letsencrypt renew ) is missing, install it co$        exit;
}
andypl78 commented 8 years ago

Try sed -i -re 's/letsencrypt-renewer/letsencrypt/gi' install.php

genogod commented 8 years ago

Try sed -i -re 's/letsencrypt-renewer/letsencrypt/gi' install.php

This worked for me, thanks!!

alexalouit commented 8 years ago

fix in 2a9b20e