mirror of
https://github.com/odoocker/odoocker
synced 2025-11-04 15:19:22 +01:00
cleanup
This commit is contained in:
@@ -26,6 +26,7 @@ services:
|
|||||||
- USER=${DB_USER}
|
- USER=${DB_USER}
|
||||||
- PASSWORD=${DB_PASSWORD}
|
- PASSWORD=${DB_PASSWORD}
|
||||||
- ODOO_TAG
|
- ODOO_TAG
|
||||||
|
- ODOO_RC
|
||||||
- THIRD_PARTY_ADDONS
|
- THIRD_PARTY_ADDONS
|
||||||
- ODOO_SESSION_REDIS
|
- ODOO_SESSION_REDIS
|
||||||
- ODOO_SESSION_REDIS_HOST
|
- ODOO_SESSION_REDIS_HOST
|
||||||
|
|||||||
@@ -5,9 +5,6 @@ set -e
|
|||||||
# Define the path to the example configuration file
|
# Define the path to the example configuration file
|
||||||
TEMPLATE_CONF="odoo.conf"
|
TEMPLATE_CONF="odoo.conf"
|
||||||
|
|
||||||
# Copy the example conf to the destination to start replacing the variables
|
|
||||||
cp "$TEMPLATE_CONF" "$ODOO_RC"
|
|
||||||
|
|
||||||
# First pass: Evaluate any nested variables within .env file and export them
|
# First pass: Evaluate any nested variables within .env file and export them
|
||||||
while IFS='=' read -r key value || [[ -n $key ]]; do
|
while IFS='=' read -r key value || [[ -n $key ]]; do
|
||||||
# Skip comments and empty lines
|
# Skip comments and empty lines
|
||||||
@@ -23,6 +20,9 @@ while IFS='=' read -r key value || [[ -n $key ]]; do
|
|||||||
export "$key=$value"
|
export "$key=$value"
|
||||||
done < .env
|
done < .env
|
||||||
|
|
||||||
|
# Copy the example conf to the destination to start replacing the variables
|
||||||
|
cp "$TEMPLATE_CONF" "$ODOO_RC"
|
||||||
|
|
||||||
# Second pass: Replace the variables in $ODOO_RC
|
# Second pass: Replace the variables in $ODOO_RC
|
||||||
while IFS='=' read -r key value || [[ -n $key ]]; do
|
while IFS='=' read -r key value || [[ -n $key ]]; do
|
||||||
# Skip comments and empty lines
|
# Skip comments and empty lines
|
||||||
|
|||||||
Reference in New Issue
Block a user