diff --git a/README.md b/README.md index 1ec2a9d..49ecb70 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,3 @@ disconnect: schließt die SSH Multiplex Session und damit auch alle aktuellen Ve - `SQL_PROXY_HOST` - DEFAULT: `"localhost"` - DESCRIPTION: Setzt den Target Proxy Host -- (DEPRECATED) `SQL_CLI_TEMPLATE` - - DEFAULT LINUX: `'mysql --protocol=TCP -u $MYSQL_USERNAME -p$MYSQL_PASSWORD -h localhost -P 3306'` - - DEFAULT MACOS: `'open \"mysql://$MYSQL_USERNAME:$MYSQL_PASSWORD@localhost:3306\" -a \"Sequel Ace\"'` - - DESCRIPTION: Setzt den auszuführenden Datenbank-Client Befehl diff --git a/script/myssh b/script/myssh index 06c5e42..e56fdb4 100755 --- a/script/myssh +++ b/script/myssh @@ -19,26 +19,6 @@ then USE_CLI=true fi -get_template_string() { - if [ -z "$SQL_CLI_TEMPLATE" ] - then - if [ "$(uname -s)" = "Linux" ] - then - SQL_CLI_TEMPLATE='mysql --protocol=TCP -u $MYSQL_USERNAME -p$MYSQL_PASSWORD -h localhost -P 6033' - else - SQL_CLI_TEMPLATE='open \"mysql://$MYSQL_USERNAME:$MYSQL_PASSWORD@localhost:6033\" -a \"Sequel Ace\"' - fi - else - echo -e "Warning, custom client string:\n$SQL_CLI_TEMPLATE" - read -r -p "Continue [Y/n] " CONTINUE - if [[ ! $CONTINUE =~ "^[Yy]" ]] - then - exit - fi - fi - printf '%s' "${SQL_CLI_TEMPLATE}" -} - ssh_status() { ssh -n -O check -S "${HOME}/.ssh/controlmasters/%r@%h:%p" "${SSH_SQL_PROXY_HOST}" > /dev/null 2>&1 }