2021-06-27 01:24:31 -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-02-10 00:40:56 -05: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
|
2022-01-24 14:00:47 -05:00
|
|
|
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 install_addons_dev.sh"
|
2022-02-10 00:40:56 -05:00
|
|
|
exit 1
|
|
|
|
|
fi
|
2023-01-01 02:40:42 -05:00
|
|
|
|
|
|
|
|
echo "Install module '$2' on BD '$1'"
|
|
|
|
|
|
2022-02-10 00:40:56 -05:00
|
|
|
if [[ $# -eq 3 ]]; then
|
2023-01-22 18:08:39 -05:00
|
|
|
./run.sh --no-http --stop-after-init --limit-memory-soft=8589934592 --limit-memory-hard=10737418240 --dev cg -d "$1" -i "$2" -u "$2" -c "$3"
|
|
|
|
|
# ./run.sh --no-http --stop-after-init fd --limit-memory-soft=2048*1024*1024 --dev cg -d "$1" -i "$2" -u "$2" -c "$3"
|
2022-02-10 00:40:56 -05:00
|
|
|
else
|
2023-01-22 18:08:39 -05:00
|
|
|
./run.sh --no-http --stop-after-init --limit-memory-soft=8589934592 --limit-memory-hard=10737418240 --dev cg -d "$1" -i "$2" -u "$2"
|
2022-01-24 14:00:47 -05:00
|
|
|
fi
|
2022-02-10 00:40:56 -05:00
|
|
|
|
2021-06-27 01:24:31 -04:00
|
|
|
retVal=$?
|
|
|
|
|
if [[ $retVal -ne 0 ]]; then
|
2024-02-23 13:01:10 -05:00
|
|
|
echo -e "${Red}Error${Color_Off} run.sh into install_addons_dev.sh"
|
2022-02-10 00:40:56 -05:00
|
|
|
exit 1
|
2021-06-27 01:24:31 -04:00
|
|
|
fi
|