Commit 1bd019d6 authored by Philippe Mouchel's avatar Philippe Mouchel
Browse files

Provide a new var, to define site default language

parent ac9adcbd
Pipeline #1695 failed with stages
...@@ -27,7 +27,7 @@ env.site_admin_user = 'admin' ...@@ -27,7 +27,7 @@ env.site_admin_user = 'admin'
env.site_admin_pass = 'admin' env.site_admin_pass = 'admin'
env.site_subdir = 'default' env.site_subdir = 'default'
env.site_languages = '' env.site_languages = ''
env.site_default_language = ''
# PatternLab # PatternLab
......
...@@ -127,8 +127,8 @@ def site_install(): ...@@ -127,8 +127,8 @@ def site_install():
h.fab_run(role, 'chown {}:{} ./sites'.format(env.apache_user, env.apache_user)) h.fab_run(role, 'chown {}:{} ./sites'.format(env.apache_user, env.apache_user))
h.fab_run(role, 'chmod ug+w ./sites/default'.format(env.docker_site_root)) h.fab_run(role, 'chmod ug+w ./sites/default'.format(env.docker_site_root))
if env.site_languages: if env.site_default_language:
locale = '--locale="{}"'.format(env.site_languages.split(',')[0]) locale = '--locale="{}"'.format(env.site_default_language)
else: else:
locale = '' locale = ''
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment