-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from sbidoul/more-ref-oca_install_addons
More refactoring of oca_install_addons
- Loading branch information
Showing
2 changed files
with
19 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,21 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
# show pip config | ||
pip config list | ||
|
||
oca_install_addons__deps_and_addons_path | ||
|
||
# show what we have installed | ||
pip freeze | ||
|
||
# Add ADDONS_DIR to addons_path. | ||
echo "addons_path=${ADDONS_PATH},${ADDONS_DIR}" >> ${ODOO_RC} | ||
cat ${ODOO_RC} | ||
|
||
deps=$(oca_list_external_dependencies deb) | ||
if [ -n "$deps" ]; then | ||
apt-get update -qq | ||
# Install 'deb' external dependencies of all Odoo addons found in path. | ||
DEBIAN_FRONTEND=noninteractive apt-get install -qq --no-install-recommends ${deps} | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters