Skip to content

Commit

Permalink
fix: add config dir option
Browse files Browse the repository at this point in the history
  • Loading branch information
debendraoli committed Oct 30, 2024
1 parent 7e8ce7d commit 15b00b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ curl -L "${REPO_URL}/${DOCKER_COMPOSE_FILE}" -o "${CONFIG_DIR}/${DOCKER_COMPOSE_

# Prompt user for environment variables

## data directory
read -p "Enter Data Directory [./data]: " DATA_DIR
CONFIG=${DATA_DIR:-./data}

# AWS Credentials
read -p "Enter AWS Access Key ID: " AWS_ACCESS_KEY_ID
read -p "Enter AWS Secret Access Key: " AWS_SECRET_ACCESS_KEY
Expand Down Expand Up @@ -108,6 +112,7 @@ cp "${CONFIG_PATH}" "${CONFIG_DIR}/config.yaml"

# Create .env file
cat <<EOF > "${CONFIG_DIR}/.env"
CONFIG=${CONFIG}
AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION}
Expand Down

0 comments on commit 15b00b7

Please sign in to comment.