forked from peppelauro/easydock
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from joglomedia/linux
Re-configuration
- Loading branch information
Showing
4 changed files
with
26 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,8 @@ | |
# | Authors : Edi Septriyanto <[email protected]> | | ||
# | Andrea Pollastri <[email protected]> | | ||
# | Min. requirement : GNU/Linux Debian 8, Ubuntu 16.04 or Linux Mint 17 | | ||
# | Version : 1.0.3 | | ||
# | Last Update : 14/04/2021 | | ||
# | Version : 1.0.4 | | ||
# | Last Update : 31/05/2021 | | ||
# +-------------------------------------------------------------------------+ | ||
# | EasyDock-Linux Copyright (c) 2021 MasEDI.Net | | ||
# | EasyDock's Logo & Name Copyright (c) Andrea Pollastri | | ||
|
@@ -451,6 +451,14 @@ function ed_conn() { | |
ed_shell | ||
} | ||
|
||
function ed_sql_shell() { | ||
echo -e "${blue}Wait... ${reset}${br}" | ||
sleep 1s | ||
echo -e "${bgblue}${white} Database Shell ${reset}${br}" | ||
echo -e "Run ${bgwhite}${black} exit ${reset} to return on your Linux shell.${br}" | ||
docker-compose -f ./.easydock/docker-compose.yml --env-file=./.env.easydock exec mysql /bin/bash | ||
} | ||
|
||
############################################################ CLI MENU | ||
|
||
function ed_cli_menu() { | ||
|
@@ -521,6 +529,11 @@ function ed_cli_menu() { | |
ed_shell | ||
exit | ||
;; | ||
sql_shell) | ||
shift | ||
ed_sql_shell | ||
exit | ||
;; | ||
*) | ||
shift | ||
ed_notfound "${menu}" | ||
|