myssh: Add warning for custom client script

This commit is contained in:
Kevin Baensch 2022-11-18 12:21:33 +01:00
parent d51016d72d
commit 63067cbb7a

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
if [ -z $SQL_CLI_TEMPLATE ]
if [ -z "$SQL_CLI_TEMPLATE" ]
then
if [ $(uname -s) = "Linux" ]
then
@ -8,6 +8,13 @@ then
else
SQL_CLI_TEMPLATE='open \"mysql://$MYSQL_USERNAME:$MYSQL_PASSWORD@localhost:3306\" -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
[ -z $SQL_PROXY_HOST ] && SQL_PROXY_HOST="localhost"