Update ODOO_BASE_DIR attributes by setting ODOO_DAEMON_USER as the owner. (#121)

Signed-off-by: Sylvain Bonnemaison <sylvain.bonnemaison@ti-mm.com>
This commit is contained in:
ruddy32 2022-05-30 12:43:53 +02:00 committed by Bitnami Containers
parent 4f78305b17
commit bf4d3df8f4
3 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,8 @@ for dir in "$ODOO_ADDONS_DIR" "$ODOO_CONF_DIR" "$ODOO_DATA_DIR" "$ODOO_LOGS_DIR"
# Use daemon:root ownership for compatibility when running as a non-root user
configure_permissions_ownership "$dir" -d "775" -f "664" -u "$ODOO_DAEMON_USER" -g "root"
done
# Use daemon user ownership for compatibility when running as a non-root user
chown "$ODOO_DAEMON_USER" "$ODOO_BASE_DIR"
# Create folders that existed in previous versions of this image with proper permissions/ownership
# TODO: Remove this block in a future release

View File

@ -28,6 +28,8 @@ for dir in "$ODOO_ADDONS_DIR" "$ODOO_CONF_DIR" "$ODOO_DATA_DIR" "$ODOO_LOGS_DIR"
# Use daemon:root ownership for compatibility when running as a non-root user
configure_permissions_ownership "$dir" -d "775" -f "664" -u "$ODOO_DAEMON_USER" -g "root"
done
# Use daemon user ownership for compatibility when running as a non-root user
chown "$ODOO_DAEMON_USER" "$ODOO_BASE_DIR"
# Create folders that existed in previous versions of this image with proper permissions/ownership
# TODO: Remove this block in a future release

View File

@ -28,6 +28,8 @@ for dir in "$ODOO_ADDONS_DIR" "$ODOO_CONF_DIR" "$ODOO_DATA_DIR" "$ODOO_LOGS_DIR"
# Use daemon:root ownership for compatibility when running as a non-root user
configure_permissions_ownership "$dir" -d "775" -f "664" -u "$ODOO_DAEMON_USER" -g "root"
done
# Use daemon user ownership for compatibility when running as a non-root user
chown "$ODOO_DAEMON_USER" "$ODOO_BASE_DIR"
# Create folders that existed in previous versions of this image with proper permissions/ownership
# TODO: Remove this block in a future release