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() {
|
||||
local $config
|
||||
|
||||
|
||||
if [[ -r "${scriptDir}/../config/postgresql.cfg" ]]; then
|
||||
config="$(readlink -f "${scriptDir}/../config/postgresql.cfg")"
|
||||
else
|
||||
|
@ -20,7 +20,7 @@ function readConfig() {
|
|||
if [[ "${vals[0]}" -ge 10 ]]; then
|
||||
echo "${vals[@]}"
|
||||
fi
|
||||
done < "$config""
|
||||
done < "$config"
|
||||
}
|
||||
|
||||
function runBackups() {
|
||||
|
|
Loading…
Reference in a new issue