erplibre/script/addons/install_addons_dev.sh
2023-01-05 04:20:43 -05:00

26 lines
619 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 install_addons_dev.sh"
exit 1
fi
echo "Install module '$2' on BD '$1'"
if [[ $# -eq 3 ]]; then
./run.sh --no-http --stop-after-init --dev cg -d "$1" -i "$2" -u "$2" -c "$3"
else
./run.sh --no-http --stop-after-init --dev cg -d "$1" -i "$2" -u "$2"
fi
retVal=$?
if [[ $retVal -ne 0 ]]; then
echo "Error run.sh into install_addons_dev.sh"
exit 1
fi