Fixed path to postgresql config script better, fix typo

This commit is contained in:
Eric Renfro 2023-12-13 02:27:35 -05:00
parent a869c922c8
commit c7772fd141
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF

View file

@ -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() {