From 13c9a628c8e3623a75a8c8ce005b0f0b1e85f2d9 Mon Sep 17 00:00:00 2001 From: Luke Sikina Date: Wed, 24 Apr 2024 15:16:09 -0400 Subject: [PATCH] [ALS-6263] - fix mysql command --- initial-configuration/install-dependencies-docker.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/initial-configuration/install-dependencies-docker.sh b/initial-configuration/install-dependencies-docker.sh index a43a3d00..bf8b20a6 100755 --- a/initial-configuration/install-dependencies-docker.sh +++ b/initial-configuration/install-dependencies-docker.sh @@ -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"