* **BREAKING**: Replaced `ODOO_INIT_DEMO_DATA` with `WITHOUT_DEMO` to align with Odoo's native config option * Migrate SSH key and other parameters from individual env vars to `IR_CONFIG_PARAMETER` * Update template-odoo-rc to dynamically build `IR_CONFIG_PARAMETER` from env vars * Adjust task script logic to use `WITHOUT_DEMO` consistently * Update README and CHANGELOG to reflect breaking change and new usage patterns
2832 lines
97 KiB
Bash
Executable File
2832 lines
97 KiB
Bash
Executable File
#!/bin/bash
|
|
cd "$(dirname "$0")" || exit
|
|
# Commands such as git pull return exit code if there are no changes
|
|
# set -e
|
|
|
|
if [[ -a ".env" ]]; then
|
|
source .env
|
|
fi
|
|
|
|
function help-table() {
|
|
CMD_WIDTH=26
|
|
OPT_WIDTH=20
|
|
DESC_WIDTH=78
|
|
COLUMN="| %-${CMD_WIDTH}s | %-${OPT_WIDTH}s | %-${DESC_WIDTH}s |\n"
|
|
|
|
printf "$COLUMN" "Command" "Option" "Description"
|
|
echo "|$(printf '%*s' $((CMD_WIDTH + 2)) '' | tr ' ' '-')|$( |