Skip to content

Commit

Permalink
Fix for variable $error
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinHoughton authored Sep 1, 2016
1 parent 3682be8 commit 6095845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion certbot.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
$error = true;
}

if (!error) {
if (!$error) {
$command = "cd ".CERTBOT_PATH." && ./certbot-auto certonly --email $email --agree-tos --renew-by-default --webroot -w /home/$acc/public_html/ -d $domain && cp -f /etc/letsencrypt/live/$domain/fullchain.pem /etc/pki/tls/certs/$domain.crt && cp -f /etc/letsencrypt/live/$domain/privkey.pem /etc/pki/tls/private/$domain.key && cp -f /etc/letsencrypt/live/$domain/chain.pem /etc/pki/tls/certs/$domain.bundle";
echo "<pre>";
echo shell_exec($command);
Expand Down

0 comments on commit 6095845

Please sign in to comment.