[IMP] update all script paths for new directory structure
Update all path references to match the new directory layout:
upgrade.sh:
- ./prepare_db.sh -> ${SCRIPT_DIR}/scripts/prepare_db.sh
- ./finalize_db.sh -> ${SCRIPT_DIR}/scripts/finalize_db.sh
- ${SCRIPT_DIR}/${version}.0/ -> ${SCRIPT_DIR}/versions/${version}.0/
scripts/prepare_db.sh:
- pre_migration_view_checking.py -> ${SCRIPT_DIR}/lib/python/check_views.py
scripts/finalize_db.sh:
- post_migration_fix_duplicated_views.py -> ${SCRIPT_DIR}/lib/python/fix_duplicated_views.py
- post_migration_cleanup_obsolete_modules.py -> ${SCRIPT_DIR}/lib/python/cleanup_modules.py
versions/*/upgrade.sh:
- ../compose.yml -> ../../config/compose.yml
This commit is contained in:
@@ -64,7 +64,8 @@ echo "Installed add-ons not available in final Odoo version:"
|
||||
echo "$missing_addons"
|
||||
confirm_or_exit "Do you accept to migrate with these add-ons still installed?"
|
||||
|
||||
PYTHON_SCRIPT=pre_migration_view_checking.py
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
PYTHON_SCRIPT="${SCRIPT_DIR}/lib/python/check_views.py"
|
||||
echo "Check views with script $PYTHON_SCRIPT ..."
|
||||
exec_python_script_in_odoo_shell "$DB_NAME" "$DB_NAME" "$PYTHON_SCRIPT"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user