erplibre/script/addons/coverage_install_addons.sh
Mathieu Benoit fdbfe05899 [ADD] makefile: generate image DB with parallel
- add logs modules to install into script install_addons.sh

Signed-off-by: Mathieu Benoit <mathben@technolibre.ca>
2023-01-01 03:27:16 -05:00

26 lines
638 B
Bash
Executable file

#!/usr/bin/env bash
# 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
echo "Error check_addons_exist.py into coverage_install_addons.sh"
exit 1
fi
echo "Install module '$2' on BD '$1'"
if [[ $# -eq 3 ]]; then
./coverage_run.sh --no-http --stop-after-init -d "$1" -i "$2" -u "$2" -c "$3"
else
./coverage_run.sh --no-http --stop-after-init -d "$1" -i "$2" -u "$2"
fi
retVal=$?
if [[ $retVal -ne 0 ]]; then
echo "Error coverage_run.sh into coverage_install_addons.sh"
exit 1
fi