2022-04-23 00:27:38 -04:00
|
|
|
#!/usr/bin/env bash
|
2024-02-23 13:01:10 -05:00
|
|
|
Red='\033[0;31m' # Red
|
|
|
|
|
Color_Off='\033[0m' # Text Reset
|
|
|
|
|
|
2022-04-23 00:27:38 -04:00
|
|
|
# Argument 3 is config
|
|
|
|
|
if [[ $# -eq 3 ]]; then
|
|
|
|
|
./script/addons/check_addons_exist.py -m "$2" -c "$3"
|
|
|
|
|
else
|
|
|
|
|
./script/addons/check_addons_exist.py -m "$2"
|
|
|
|
|
fi
|
|
|
|
|
retVal=$?
|
|
|
|
|
if [[ $retVal -ne 0 ]]; then
|
2024-02-23 13:01:10 -05:00
|
|
|
echo -e "${Red}Error${Color_Off} check_addons_exist.py into coverage_install_addons_dev.sh"
|
2022-04-23 00:27:38 -04:00
|
|
|
exit 1
|
|
|
|
|
fi
|
2023-01-01 02:40:42 -05:00
|
|
|
|
|
|
|
|
echo "Install module '$2' on BD '$1'"
|
|
|
|
|
|
2022-04-23 00:27:38 -04:00
|
|
|
if [[ $# -eq 3 ]]; then
|
|
|
|
|
./coverage_run.sh --no-http --stop-after-init --dev qweb -d "$1" -i "$2" -u "$2" -c "$3"
|
|
|
|
|
else
|
|
|
|
|
./coverage_run.sh --no-http --stop-after-init --dev qweb -d "$1" -i "$2" -u "$2"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
retVal=$?
|
|
|
|
|
if [[ $retVal -ne 0 ]]; then
|
2024-02-23 13:01:10 -05:00
|
|
|
echo -e "${Red}Error${Color_Off} coverage_run.sh into coverage_install_addons_dev.sh"
|
2022-04-23 00:27:38 -04:00
|
|
|
exit 1
|
|
|
|
|
fi
|