Bläddra i källkod

Add logging message when not writing a config.

pull/3/head
Shane Mc Cormack 6 år sedan
förälder
incheckning
8f70782ba7
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3
    0
      generate.py

+ 3
- 0
generate.py Visa fil

@@ -46,6 +46,9 @@ while True:
46 46
       print('Writing vhosts.conf...', flush=True)
47 47
       f.write(template.render(services=services))
48 48
       wroteConfig = True;
49
+    print('Done writing config.', flush=True)
50
+  else:
51
+    print('Not writing empty config. Ensure that your letsencrypt certificates are accessible to this container.')
49 52
 
50 53
   print('Done writing config.', flush=True)
51 54
 

Laddar…
Avbryt
Spara