Files
odoocker/odoo/third-party-addons.sh

28 lines
1.1 KiB
Bash
Raw Normal View History

2023-10-01 00:55:06 -05:00
#!/bin/bash
set -e
2023-09-30 22:58:38 -05:00
# Check if the repository directory exists
if [ ! -d "odoo-cloud-platform" ]; then
2023-10-07 05:10:20 -05:00
git clone https://github.com/odoocker/odoo-cloud-platform.git --depth 1 --branch ${ODOO_TAG} --single-branch --no-tags;
2023-09-30 22:58:38 -05:00
cp -r odoo-cloud-platform/session_redis ${THIRD_PARTY_ADDONS}/session_redis
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
fi
2023-10-07 05:10:20 -05:00
# Check if the repository directory exists
if [ ! -d "server-tools" ]; 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
fi
# Define the path to the manifest files
2023-10-06 23:55:18 -05:00
redis_manifest="${THIRD_PARTY_ADDONS}/session_redis/__manifest__.py"
2023-09-30 23:36:11 -05:00
s3_manifest="${THIRD_PARTY_ADDONS}/attachment_s3/__manifest__.py"
2023-10-07 05:10:20 -05:00
sentry_manifest="${THIRD_PARTY_ADDONS}/sentry/__manifest__.py"
2023-09-30 22:58:38 -05:00
2023-10-07 05:10:20 -05:00
# Modify the manifest files
# python3 /fix-manifest.py $redis_manifest
# python3 /fix-manifest.py $s3_manifest
# python3 /fix-manifest.py $sentry_manifest