Browse Source

* use config without underscore

master
dimti 4 years ago
parent
commit
0f0f3dcd7f
  1. 2
      _activate-master-to-master.sh
  2. 2
      _activate-slave.sh
  3. 2
      _dump.sh
  4. 0
      config.sh-example
  5. 2
      start-replication.sh

2
_activate-master-to-master.sh

@ -1,6 +1,6 @@
#!/bin/bash
export DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CONFIG_FILE=$DIR/_config.sh
CONFIG_FILE=$DIR/config.sh
[[ ! -r "${CONFIG_FILE}" ]] && { echo "Could not read ${CONFIG_FILE}!"; exit 1; }
set -a
. "${CONFIG_FILE}"

2
_activate-slave.sh

@ -1,6 +1,6 @@
#!/bin/bash
export DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CONFIG_FILE=$DIR/_config.sh
CONFIG_FILE=$DIR/config.sh
[[ ! -r "${CONFIG_FILE}" ]] && { echo "Could not read ${CONFIG_FILE}!"; exit 1; }
set -a
. "${CONFIG_FILE}"

2
_dump.sh

@ -1,6 +1,6 @@
#!/bin/bash
export DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CONFIG_FILE=$DIR/_config.sh
CONFIG_FILE=$DIR/config.sh
[[ ! -r "${CONFIG_FILE}" ]] && { echo "Could not read ${CONFIG_FILE}!"; exit 1; }
set -a
. "${CONFIG_FILE}"

0
_config.sh-example → config.sh-example

2
start-replication.sh

@ -1,6 +1,6 @@
#!/bin/bash
export DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CONFIG_FILE=$DIR/_config.sh
CONFIG_FILE=$DIR/config.sh
[[ ! -r "${CONFIG_FILE}" ]] && { echo "Could not read ${CONFIG_FILE}!"; exit 1; }
set -a
. "${CONFIG_FILE}"

Loading…
Cancel
Save