vhost
This commit is contained in:
parent
bb4a9fac09
commit
ac52f297ec
@ -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):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user