Skip to content

Commit

Permalink
Merge pull request #49 from bento-platform/fix/db-dir
Browse files Browse the repository at this point in the history
fix: db and data dirs creation in container
  • Loading branch information
v-rocheleau authored Jun 1, 2023
2 parents 8bba0a7 + 362e1fc commit d0ec853
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chord_drs/package.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = chord_drs
version = 0.10.3
version = 0.10.4
authors = Simon Chénard, David Lougheed
author_emails = [email protected], [email protected]
7 changes: 4 additions & 3 deletions entrypoint.bash
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@ source /create_service_user.bash

# Fix permissions on /drs; fix data directory permissions more specifically if needed
chown -R bento_user:bento_user /drs
if [[ -z "${BENTO_DRS_CONTAINER_DATA_VOLUME_DIR}" ]]; then
if [[ -n "${BENTO_DRS_CONTAINER_DATA_VOLUME_DIR}" ]]; then
# Location of volume mount - run chown here.
chown -R bento_user:bento_user "${BENTO_DRS_CONTAINER_DATA_VOLUME_DIR}"
fi

# Use the database and object folder path variables more directly to create them
# and set their permissions.
if [[ -z "${DATABASE}" ]]; then
if [[ -n "${DATABASE}" ]]; then
# DATABASE is a folder; confusing naming
mkdir -p "${DATABASE}"
chown -R bento_user:bento_user "${DATABASE}"
fi
if [[ -z "${DATA}" ]]; then

if [[ -n "${DATA}" ]]; then
# DATA is another folder; confusing naming
mkdir -p "${DATA}"
chown -R bento_user:bento_user "${DATA}"
Expand Down

0 comments on commit d0ec853

Please sign in to comment.