Add reload on config change

This commit is contained in:
Christophe Mehay 2017-02-07 08:57:45 +01:00
parent d05d649be4
commit 2bd4787a45
4 changed files with 14 additions and 4 deletions

View file

@ -15,4 +15,8 @@ post_conf_commands:
- onions
- chown -R tor:tor $HOME
reload:
files:
- /etc/torrc
debug: false

View file

@ -98,7 +98,6 @@ class Setup(object):
with open(os.path.join(serv_dir, 'hostname'), 'w') as f:
f.write(self.onion_url_gen(conf['key']))
def _set_conf(self):
env = Environment(loader=FileSystemLoader('/'))
temp = env.get_template(self.torrc_template)