Fixed path to postgresql config script better, fix typo
This commit is contained in:
parent
a869c922c8
commit
c7772fd141
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ scriptDir="$(dirname "$0")"
|
||||||
|
|
||||||
function readConfig() {
|
function readConfig() {
|
||||||
local $config
|
local $config
|
||||||
|
|
||||||
if [[ -r "${scriptDir}/../config/postgresql.cfg" ]]; then
|
if [[ -r "${scriptDir}/../config/postgresql.cfg" ]]; then
|
||||||
config="$(readlink -f "${scriptDir}/../config/postgresql.cfg")"
|
config="$(readlink -f "${scriptDir}/../config/postgresql.cfg")"
|
||||||
else
|
else
|
||||||
|
@ -20,7 +20,7 @@ function readConfig() {
|
||||||
if [[ "${vals[0]}" -ge 10 ]]; then
|
if [[ "${vals[0]}" -ge 10 ]]; then
|
||||||
echo "${vals[@]}"
|
echo "${vals[@]}"
|
||||||
fi
|
fi
|
||||||
done < "$config""
|
done < "$config"
|
||||||
}
|
}
|
||||||
|
|
||||||
function runBackups() {
|
function runBackups() {
|
||||||
|
|
Loading…
Reference in a new issue