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:
parent
4f78305b17
commit
bf4d3df8f4
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue