Skip to content

Commit

Permalink
Fix: setup.sh fails when run as root. (#2996)
Browse files Browse the repository at this point in the history
Closes #2979
  • Loading branch information
arikfr authored Oct 23, 2018
1 parent 2e6883c commit ab6ed7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ setup_compose() {
sed -ri "s/image: redash\/redash:([A-Za-z0-9.-]*)/image: redash\/redash:$LATEST_VERSION/" docker-compose.yml
echo "export COMPOSE_PROJECT_NAME=redash" >> ~/.profile
echo "export COMPOSE_FILE=/opt/redash/docker-compose.yml" >> ~/.profile
source ~/.profile
export COMPOSE_PROJECT_NAME=redash
export COMPOSE_FILE=/opt/redash/docker-compose.yml
sudo docker-compose run --rm server create_db
sudo docker-compose up -d
}

install_docker
create_directories
create_config
setup_compose
setup_compose

0 comments on commit ab6ed7d

Please sign in to comment.