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

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'
env.site_admin_pass = 'admin'
env.site_subdir = 'default'
env.site_languages = ''
env.site_default_language = ''
# PatternLab
......
......@@ -127,8 +127,8 @@ def site_install():
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))
if env.site_languages:
locale = '--locale="{}"'.format(env.site_languages.split(',')[0])
if env.site_default_language:
locale = '--locale="{}"'.format(env.site_default_language)
else:
locale = ''
......
Markdown is supported
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