diff --git a/templates/odoo-10.0.init b/templates/odoo-10.0.init index 1b9a7a7..efe327c 100644 --- a/templates/odoo-10.0.init +++ b/templates/odoo-10.0.init @@ -26,7 +26,7 @@ USER={{ odoo_user }} export LOGNAME=$USER {% if odoo_init_env %} # Custom environment variables -{% for name, value in odoo_init_env.iteritems() %} +{% for name, value in odoo_init_env.items() | list %} export {{ name }}={{ value }} {% endfor %} {% endif %} diff --git a/templates/odoo-8.0.init b/templates/odoo-8.0.init index 322e1a8..c309df5 100644 --- a/templates/odoo-8.0.init +++ b/templates/odoo-8.0.init @@ -26,7 +26,7 @@ USER={{ odoo_user }} export LOGNAME=$USER {% if odoo_init_env %} # Custom environment variables -{% for name, value in odoo_init_env.iteritems() %} +{% for name, value in odoo_init_env.items() | list %} export {{ name }}={{ value }} {% endfor %} {% endif %} diff --git a/templates/odoo-9.0.init b/templates/odoo-9.0.init index 322e1a8..c309df5 100644 --- a/templates/odoo-9.0.init +++ b/templates/odoo-9.0.init @@ -26,7 +26,7 @@ USER={{ odoo_user }} export LOGNAME=$USER {% if odoo_init_env %} # Custom environment variables -{% for name, value in odoo_init_env.iteritems() %} +{% for name, value in odoo_init_env.items() | list %} export {{ name }}={{ value }} {% endfor %} {% endif %} diff --git a/templates/odoo-buildout.init b/templates/odoo-buildout.init index d8bb092..35dce4a 100644 --- a/templates/odoo-buildout.init +++ b/templates/odoo-buildout.init @@ -25,7 +25,7 @@ USER={{ odoo_user }} export LOGNAME=$USER {% if odoo_init_env %} # Custom environment variables -{% for name, value in odoo_init_env.iteritems() %} +{% for name, value in odoo_init_env.items() | list %} export {{ name }}={{ value }} {% endfor %} {% endif %} diff --git a/templates/odoo-buildout.service b/templates/odoo-buildout.service index d66dd41..a7460f5 100644 --- a/templates/odoo-buildout.service +++ b/templates/odoo-buildout.service @@ -8,7 +8,7 @@ User={{ odoo_user }} WorkingDirectory={{ odoo_workdir }} ExecStart={{ odoo_buildout_odoo_bin_path }}{{ odoo_logfile and ' --logfile %s' % odoo_logfile }} KillMode=mixed -{% for name, value in odoo_init_env.iteritems() %} +{% for name, value in odoo_init_env.items() | list %} Environment={{ name }}={{ value }} {% endfor %} diff --git a/templates/odoo-pip.init b/templates/odoo-pip.init index 7cacea6..82693d8 100644 --- a/templates/odoo-pip.init +++ b/templates/odoo-pip.init @@ -27,7 +27,7 @@ USER={{ odoo_user }} export LOGNAME=$USER {% if odoo_init_env %} # Custom environment variables -{% for name, value in odoo_init_env.iteritems() %} +{% for name, value in odoo_init_env.items() | list %} export {{ name }}={{ value }} {% endfor %} {% endif %} diff --git a/templates/odoo-pip.service b/templates/odoo-pip.service index 23ce52b..979f002 100644 --- a/templates/odoo-pip.service +++ b/templates/odoo-pip.service @@ -8,7 +8,7 @@ User={{ odoo_user }} WorkingDirectory={{ odoo_workdir }} ExecStart={{ odoo_pip_odoo_bin_path }}{{ odoo_logfile and ' --logfile %s' % odoo_logfile }} --config {{ odoo_config_file }} KillMode=mixed -{% for name, value in odoo_init_env.iteritems() %} +{% for name, value in odoo_init_env.items() | list %} Environment={{ name }}={{ value }} {% endfor %} diff --git a/templates/odoo-standard.service b/templates/odoo-standard.service index e4ad3e7..0e366b1 100644 --- a/templates/odoo-standard.service +++ b/templates/odoo-standard.service @@ -12,7 +12,7 @@ KillMode=mixed {% else %} ExecStart={{ odoo_rootdir }}/odoo.py{{ odoo_logfile and ' --logfile %s' % odoo_logfile }} --config {{ odoo_config_file }} {% endif %} -{% for name, value in odoo_init_env.iteritems() %} +{% for name, value in odoo_init_env.items() | list %} Environment={{ name }}={{ value }} {% endfor %}