[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.
This commit is contained in:
Jared Kipe
2022-01-16 12:48:05 -08:00
parent 1ee5b14ebb
commit dd0105cbd6

View File

@@ -16,6 +16,11 @@ set -e
# DEV_MODE_PATH=/opt/odoo/addons # DEV_MODE_PATH=/opt/odoo/addons
# To change the path to start Theia in, useful to get git working. # 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" == "" ] if [ "$DEV_MODE_PATH" == "" ]
then then
export DEV_MODE_PATH=/opt/odoo/hibou-suite export DEV_MODE_PATH=/opt/odoo/hibou-suite