- Makefile show version, switch version and install different version - erplibre_version with odoo_version, poetry_version and python_version - support multiple docker version - support odoo 12, odoo 14, odoo 16 - bullseye, bookworm debian - update latest version - script update_env_version to detect actual version and refactor it - adapt file path to support multiple version - poetry with verbose by default, ignore python keyring - python script to generate image db with parallel for all odoo version - check_addons_exist before generate all image - support delay to change queue parallel - fix odoo 12 product configurator - can show demo website - swith odoo - force create addons if missing - update manifest, because gen config break with wrong manifest
21 lines
588 B
Bash
Executable file
21 lines
588 B
Bash
Executable file
#!/usr/bin/env bash
|
|
Red='\033[0;31m' # Red
|
|
Color_Off='\033[0m' # Text Reset
|
|
|
|
# $1 BD NAME
|
|
# $2 file_path
|
|
|
|
# If addons is separate by ,
|
|
# ./script/addons/install_addons.sh "$1" "$(<$2)"
|
|
|
|
# If addons is separate by endline
|
|
# Read the file, put all line into string separate by ,
|
|
resultat=$(grep -v '^$' $2 | tr '\n' ',' | sed 's/,$//')
|
|
|
|
echo "Install modules ${resultat}"
|
|
./script/addons/install_addons.sh "$1" "$resultat"
|
|
retVal=$?
|
|
if [[ $retVal -ne 0 ]]; then
|
|
echo -e "${Red}Error${Color_Off} ./script/addons/install_addons.sh into install_addons_from_file.sh"
|
|
exit 1
|
|
fi
|