Skip to content

Commit

Permalink
chore: fix gotrue
Browse files Browse the repository at this point in the history
  • Loading branch information
pcnc committed Dec 8, 2023
1 parent e1ceacc commit 9a82870
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/all-in-one/init/configure-gotrue.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GOTRUE_CUSTOM_CONFIG_FILE_PATH="${DATA_VOLUME_MOUNTPOINT}/etc/gotrue/gotrue.env"

if [ "${DATA_VOLUME_MOUNTPOINT}" ]; then
mkdir -p "${GOTRUE_CUSTOM_DIR}"
chown gotrue:gotrue "${GOTRUE_CUSTOM_DIR}"
chown adminapi:adminapi "${GOTRUE_CUSTOM_DIR}"

if [ ! -f "${CONFIGURED_FLAG_PATH}" ]; then
echo "Copying existing GoTrue config from /etc/gotrue.env to ${GOTRUE_CUSTOM_CONFIG_FILE_PATH}"
Expand All @@ -27,7 +27,7 @@ fi

if [ -f "${INIT_PAYLOAD_PATH:-}" ]; then
echo "init gotrue payload"
tar -xzvf "$INIT_PAYLOAD_PATH" -C / ./etc/gotrue.env
tar -h --overwrite -xzvf "$INIT_PAYLOAD_PATH" -C / ./etc/gotrue.env
chown -R adminapi:adminapi /etc/gotrue.env
else
sed -i "s|api_external_url|${API_EXTERNAL_URL:-http://localhost}|g" /etc/gotrue.env
Expand Down

0 comments on commit 9a82870

Please sign in to comment.