From dd0105cbd6fd6f601ea2c4673b070a474301ec99 Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Sun, 16 Jan 2022 12:48:05 -0800 Subject: [PATCH] [IMP] athene: copy in examples of files if not present This makes the IDE work properly out of the box if the directory is empty or just doesn't have the .theia directory. --- entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index cf07e6a1..5267e384 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -16,6 +16,11 @@ set -e # 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