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"