myssh: Add warning for custom client script
This commit is contained in:
parent
d51016d72d
commit
63067cbb7a
1 changed files with 8 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [ -z $SQL_CLI_TEMPLATE ]
|
if [ -z "$SQL_CLI_TEMPLATE" ]
|
||||||
then
|
then
|
||||||
if [ $(uname -s) = "Linux" ]
|
if [ $(uname -s) = "Linux" ]
|
||||||
then
|
then
|
||||||
|
@ -8,6 +8,13 @@ then
|
||||||
else
|
else
|
||||||
SQL_CLI_TEMPLATE='open \"mysql://$MYSQL_USERNAME:$MYSQL_PASSWORD@localhost:3306\" -a \"Sequel Ace\"'
|
SQL_CLI_TEMPLATE='open \"mysql://$MYSQL_USERNAME:$MYSQL_PASSWORD@localhost:3306\" -a \"Sequel Ace\"'
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
[ -z $SQL_PROXY_HOST ] && SQL_PROXY_HOST="localhost"
|
[ -z $SQL_PROXY_HOST ] && SQL_PROXY_HOST="localhost"
|
||||||
|
|
Loading…
Reference in a new issue