This commit is contained in:
gauthiier 2018-11-28 10:35:14 +01:00
parent bb4a9fac09
commit ac52f297ec

View File

@ -90,6 +90,10 @@ def vhost_add(domain):
with open(vhost_file, 'w+') as vhost_file_fp: with open(vhost_file, 'w+') as vhost_file_fp:
vhost_file_fp.write(vhost) vhost_file_fp.write(vhost)
bla = os.path.join(www, 'itworks.txt')
with open(bla, 'w+') as bla_fp:
bla.write("it does.")
# check is ssl cert exists # check is ssl cert exists
cert = os.path.join('/etc/letsencrypt/live', domain) cert = os.path.join('/etc/letsencrypt/live', domain)
if not os.path.exists(cert): if not os.path.exists(cert):