Skip to content

Commit

Permalink
Merge pull request #3 from innovyou/ONH-33-2
Browse files Browse the repository at this point in the history
IMP log message and remove script file , to be compatible with new odoo module installations
  • Loading branch information
nardellu authored Apr 26, 2024
2 parents ace5bc6 + caad9e3 commit fe9913a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imageroot/actions/configure-module/90ldap
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ try:
if ldap_domain == "":
print("No LDAP domain passed. Skipping...", file=sys.stderr)
else:
print("Starting LDAP configuration...", file=sys.stderr)
print("Starting LDAP configuration for %s" % ldap_domain, file=sys.stderr)
lp = Ldapproxy()
domain = lp.get_domain(ldap_domain)

Expand Down Expand Up @@ -90,6 +90,7 @@ try:
os.system("podman cp /tmp/click-odoo-configure-ldap.py odoo-app:/tmp/click-odoo-configure-ldap.py")
print("Calling click-odoo-configure-ldap.py...", file=sys.stderr)
os.system("podman exec -it odoo-app click-odoo -d odoo /tmp/click-odoo-configure-ldap.py")
os.system("rm /tmp/click-odoo-configure-ldap.py")
print("click-odoo-configure-ldap.py executed", file=sys.stderr)

agent.set_env("ODOO_LDAP_DOMAIN", ldap_domain)
Expand Down

0 comments on commit fe9913a

Please sign in to comment.