Skip to content

Commit

Permalink
[UPD] added some more direct scripts
Browse files Browse the repository at this point in the history
[FIX] down command tries all services and up in downup fails
  • Loading branch information
IJOL committed Sep 27, 2021
1 parent 435e489 commit 3c26fa4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bin/createdb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
echo "CREATE DATABASE $1 CHARACTER SET ${2:-"utf8"} COLLATE ${3:-"utf8_general_ci"};" \
| `dirname $0`/dev myroot
#exit $?
2 changes: 1 addition & 1 deletion bin/dev_command/down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

dc yml_all;
#dc yml_all;
dc mode 'down -v';

dc run "$@";
Expand Down
4 changes: 4 additions & 0 deletions bin/dropdb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
echo "DROP DATABASE $1;" \
| `dirname $0`/dev myroot
#exit $?
3 changes: 3 additions & 0 deletions bin/myroot
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
`dirname $0`/dev `basename $0` "$@"
exit $?

0 comments on commit 3c26fa4

Please sign in to comment.