2023-10-01 00:55:06 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
2023-10-20 00:57:28 -05:00
|
|
|
# Check if the repository directory exists and either Redis or S3 is to be used
|
|
|
|
|
if [[ ${USE_REDIS} == "true" || ${USE_S3} == "true" ]]; then
|
|
|
|
|
git clone https://github.com/odoocker/odoo-cloud-platform.git --depth 1 --branch ${ODOO_TAG} --single-branch --no-tags;
|
|
|
|
|
fi
|
2023-10-19 19:14:12 -05:00
|
|
|
|
2023-10-20 00:57:28 -05:00
|
|
|
if [[ ${USE_REDIS} == "true" ]]; then
|
|
|
|
|
cp -r odoo-cloud-platform/session_redis ${THIRD_PARTY_ADDONS}/session_redis
|
2023-10-19 19:14:12 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Check the USE_S3 variable to decide whether to copy S3 directories
|
2023-10-20 00:57:28 -05:00
|
|
|
if [[ ${USE_S3} == "true" ]]; then
|
|
|
|
|
cp -r odoo-cloud-platform/base_attachment_object_storage ${THIRD_PARTY_ADDONS}/base_attachment_object_storage
|
|
|
|
|
cp -r odoo-cloud-platform/attachment_s3 ${THIRD_PARTY_ADDONS}/attachment_s3
|
2023-09-30 22:58:38 -05:00
|
|
|
fi
|
|
|
|
|
|
2023-10-19 19:14:12 -05:00
|
|
|
# Check if the repository directory exists and Sentry is to be used
|
2023-10-20 00:57:28 -05:00
|
|
|
if [[ ${USE_SENTRY} == "true" ]]; then
|
|
|
|
|
git clone https://github.com/odoocker/server-tools.git --depth 1 --branch ${ODOO_TAG} --single-branch --no-tags;
|
|
|
|
|
cp -r server-tools/sentry ${THIRD_PARTY_ADDONS}/sentry
|
2023-10-07 05:10:20 -05:00
|
|
|
fi
|