Browse Source

+ true script dir option for fetching related bash-scripts config on some quick commands

master
toxa 5 months ago
parent
commit
eb64cd702a
  1. 4
      bash/enter-to-workspace.sh
  2. 4
      bash/mariadb.sh
  3. 4
      bash/mysql.sh
  4. 4
      bash/restart-nginx.sh
  5. 4
      bash/root-onto-workspace.sh
  6. 1
      bash/tail-db-general-log.sh
  7. 4
      bash/update-composer.sh
  8. 1
      bash/xdebug-quit.sh
  9. 1
      bash/xdebug-start.sh

4
bash/enter-to-workspace.sh

@ -1,7 +1,7 @@
#!/bin/bash
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
SCRIPT_DIR="$(realpath $(dirname "$(readlink -f "$0")"))"
. $DIR/bash/_docker-cmd.sh || {
. $SCRIPT_DIR/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

4
bash/mariadb.sh

@ -1,7 +1,7 @@
#!/bin/bash
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
SCRIPT_DIR="$(realpath $(dirname "$(readlink -f "$0")"))"
. $DIR/bash/_docker-cmd.sh || {
. $SCRIPT_DIR/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

4
bash/mysql.sh

@ -1,7 +1,7 @@
#!/bin/bash
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
SCRIPT_DIR="$(realpath $(dirname "$(readlink -f "$0")"))"
. $DIR/bash/_docker-cmd.sh || {
. $SCRIPT_DIR/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

4
bash/restart-nginx.sh

@ -1,7 +1,7 @@
#!/bin/bash
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
SCRIPT_DIR="$(realpath $(dirname "$(readlink -f "$0")"))"
. $DIR/bash/_docker-cmd.sh || {
. $SCRIPT_DIR/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

4
bash/root-onto-workspace.sh

@ -1,7 +1,7 @@
#!/bin/bash
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
SCRIPT_DIR="$(realpath $(dirname "$(readlink -f "$0")"))"
. $DIR/bash/_docker-cmd.sh || {
. $SCRIPT_DIR/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

1
bash/tail-db-general-log.sh

@ -1,4 +1,5 @@
#!/bin/bash
# Not working on windows symlinks
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
GENERAL_LOG_FILE_PATH="${DIR}/log/mariadb/mariadb.log"

4
bash/update-composer.sh

@ -1,7 +1,7 @@
#!/bin/bash
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
SCRIPT_DIR="$(realpath $(dirname "$(readlink -f "$0")"))"
. $DIR/bash/_docker-cmd.sh || {
. $SCRIPT_DIR/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

1
bash/xdebug-quit.sh

@ -1,4 +1,5 @@
#!/bin/bash
# Not working on windows symlinks
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
PHP_VERSION=$1 # Without dot

1
bash/xdebug-start.sh

@ -1,4 +1,5 @@
#!/bin/bash
# Not working on windows symlinks
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
PHP_VERSION=$1 # Without dot

Loading…
Cancel
Save