diff --git a/entrypoint.sh b/entrypoint.sh index 74ca0bc0..5267e384 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,10 +12,15 @@ set -e # Note that with Odoo running in the foreground, killing Odoo will kill the container. # DEV_MODE= # Unset to not use Theia at all. -# +# # DEV_MODE_PATH=/opt/odoo/addons # To change the path to start Theia in, useful to get git working. +if [ "$DEV_MODE_PATH" != "" ] && [ -z "$(ls -A $DEV_MODE_PATH/.theia)" ] +then + cp -R /opt/odoo/hibou-suite/.theia $DEV_MODE_PATH +fi + if [ "$DEV_MODE_PATH" == "" ] then export DEV_MODE_PATH=/opt/odoo/hibou-suite