From bc8741222821b85b418dad25dc2126b70d19e1e2 Mon Sep 17 00:00:00 2001 From: Kload Date: Tue, 9 Jul 2013 12:22:17 +0200 Subject: [PATCH] Add directory specific apache conf at app installation --- yunohost_app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yunohost_app.py b/yunohost_app.py index ae5d6a22..26e5e2b6 100644 --- a/yunohost_app.py +++ b/yunohost_app.py @@ -516,9 +516,13 @@ def app_install(app, domain, path='/', label=None, mode='private'): if path != '/': a2_conf_lines.append('Alias '+ path[:len(path)-1] +' '+ app_final_path + manifest['launch_path']) + a2_conf_lines.append('') + if lvl(manifest, 'yunohost', 'webapp', 'language') and manifest['yunohost']['webapp']['language'] == 'php': for line in open(a2_template_path +'/php.conf'): a2_conf_lines.append(line.rstrip()) + a2_conf_lines.append('') + with open(a2_settings_path +'/'+ domain +'.d/'+ unique_app_id +'.app.conf', 'w') as a2_conf: for line in a2_conf_lines: a2_conf.write(line + '\n')