enable separated features

This commit is contained in:
Yhael S
2023-10-20 00:07:37 -05:00
parent 986fffafc3
commit c3f70d3a99
8 changed files with 50 additions and 39 deletions

View File

@@ -20,6 +20,23 @@ while IFS='=' read -r key value || [[ -n $key ]]; do
export "$key=$value"
done < .env
# Check the USE_REDIS variable to decide whether to copy Redis directories
if [[ $USE_REDIS == "true" ]]; then
LOAD+=",session_redis"
fi
# Check the USE_S3 variable to decide whether to copy S3 directories
if [[ $USE_S3 == "true" ]]; then
LOAD+=",base_attachment_object_storage,attachment_s3"
fi
# Check if the repository directory exists and Sentry is to be used
if [[ $USE_SENTRY == "true" ]]; then
LOAD+=",sentry"
fi
echo "Loading addons: $LOAD"
# Copy the example conf to the destination to start replacing the variables
cp "$TEMPLATE_CONF" "$ODOO_RC"