Skip to content

Commit

Permalink
[ALS-6263] - fix mysql command
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sikina committed Apr 29, 2024
1 parent 496d656 commit 13c9a62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions initial-configuration/install-dependencies-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ function set_docker_config_dir {
grep 'DOCKER_CONFIG_DIR' "$rc_file" && sed_inplace '/DOCKER_CONFIG_DIR/d' "$rc_file"
echo "export DOCKER_CONFIG_DIR=$docker_config_dir" >> "$rc_file"
fi

# Add mysql alias to rc file while we're here
echo "Aliasing mysql command so you can connect by typing 'mysql'"
echo 'alias picsure-db="docker exec -ti picsure-db bash -c '\''mysql -uroot -p\$MYSQL_ROOT_PASSWORD'\''"' >> "$rc_file"
}

set_docker_config_dir "$1"
Expand Down

0 comments on commit 13c9a62

Please sign in to comment.