Skip to content

Commit

Permalink
Merge pull request #6 from bsyk/wrong_location
Browse files Browse the repository at this point in the history
Fix log messages that give the location of the generated certificates
  • Loading branch information
bsyk authored Aug 3, 2016
2 parents 56a3ac9 + 0201ada commit 27a73aa
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,18 @@
print("Fetch the certs and logs via cf files ...")
print("You can get them with these commands: ")

for entry in settings['domains']:
for host in entry['hosts']:
msg = ""
if entry['hosts'] is not None and host != '.':
msg = "cf files letsencrypt app/conf/live/" + host + "." + entry['domain']
else:
msg = "cf files letsencrypt app/conf/live/" + entry['domain']
print(msg + "/cert.pem")
print(msg + "/chain.pem")
print(msg + "/fullchain.pem")
print(msg + "/privkey.pem")
print()

host = settings['domains'][0]['hosts'][0]
domain = settings['domains'][0]['domain']
path = host + "." + domain

if host == '.':
path = domain

print("cf files letsencrypt app/conf/live/" + path + "/cert.pem")
print("cf files letsencrypt app/conf/live/" + path + "/chain.pem")
print("cf files letsencrypt app/conf/live/" + path + "/fullchain.pem")
print("cf files letsencrypt app/conf/live/" + path + "/privkey.pem")
print()
print("REMEMBER TO STOP THE SERVER WITH cf stop letsencrypt")

# Sleep for a week
Expand Down

0 comments on commit 27a73aa

Please sign in to comment.