make webapp have their own apache conf files

This commit is contained in:
titoko 2013-07-17 17:33:45 +02:00
parent ac59954aee
commit 5476f1c799

View file

@ -511,7 +511,9 @@ def app_install(app, domain, path='/', label=None, mode='private'):
##########
# Apache #
##########
if lvl(manifest,'yunohost','webapp','custom_apache_conf'):
os.system('mv '+app_tmp_folder+'/'+manifest['yunohost']['webapp']['custom_apache_conf']+' '++a2_settings_path +'/'+ domain +'.d/'+ unique_app_id +'.app.conf')
else:
a2_conf_lines = [ 'Alias '+ path +' '+ app_final_path + manifest['launch_path'] ]
if path != '/':
a2_conf_lines.append('Alias '+ path[:len(path)-1] +' '+ app_final_path + manifest['launch_path'])