Completely remove deprecated sql cli template feature.

This commit is contained in:
Kevin Baensch 2023-01-18 15:21:11 +01:00
parent d0def12044
commit 981f632e13
2 changed files with 0 additions and 24 deletions

View file

@ -143,7 +143,3 @@ disconnect: schließt die SSH Multiplex Session und damit auch alle aktuellen Ve
- `SQL_PROXY_HOST` - `SQL_PROXY_HOST`
- DEFAULT: `"localhost"` - DEFAULT: `"localhost"`
- DESCRIPTION: Setzt den Target Proxy Host - 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

View file

@ -19,26 +19,6 @@ then
USE_CLI=true USE_CLI=true
fi 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_status() {
ssh -n -O check -S "${HOME}/.ssh/controlmasters/%r@%h:%p" "${SSH_SQL_PROXY_HOST}" > /dev/null 2>&1 ssh -n -O check -S "${HOME}/.ssh/controlmasters/%r@%h:%p" "${SSH_SQL_PROXY_HOST}" > /dev/null 2>&1
} }