From ac52f297ecdbe56ecbfc931ca9183c6a38a7085f Mon Sep 17 00:00:00 2001 From: gauthiier Date: Wed, 28 Nov 2018 10:35:14 +0100 Subject: [PATCH] vhost --- vhost-apache2/vhost.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vhost-apache2/vhost.py b/vhost-apache2/vhost.py index a7df07a..8ce9d19 100755 --- a/vhost-apache2/vhost.py +++ b/vhost-apache2/vhost.py @@ -90,6 +90,10 @@ def vhost_add(domain): with open(vhost_file, 'w+') as vhost_file_fp: 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 cert = os.path.join('/etc/letsencrypt/live', domain) if not os.path.exists(cert):