]> Raphaël G. Git Repositories - acme/commitdiff
Fix script for prod
authorRaphaël Gertz <git@rapsys.eu>
Wed, 21 Jun 2017 09:07:07 +0000 (11:07 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 19 Sep 2022 03:05:27 +0000 (05:05 +0200)
Acme.pm

diff --git a/Acme.pm b/Acme.pm
index 134b3d4e12f200a2f6bcc61a85f8a6f3b7ee7861..e9280109ddcd536e49a93ee793de96290132f5a5 100644 (file)
--- a/Acme.pm
+++ b/Acme.pm
@@ -324,7 +324,7 @@ sub directory {
        my $time = time;
 
        # Set directory
        my $time = time;
 
        # Set directory
-       my $dir = $self->{prod} ? ACME_PROD_DIR : ACME_DIR;
+       my $dir = $self->{domain}{prod} ? ACME_PROD_DIR : ACME_DIR;
 
        # Create a request
        my $req = HTTP::Request->new(GET => $dir.'?'.$time);
 
        # Create a request
        my $req = HTTP::Request->new(GET => $dir.'?'.$time);