From 6044c5a4c020dfbb00b4a33bb16807958c97416e Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 21 Jan 2024 09:10:23 +0100 Subject: [PATCH] * MOD: cleanup Signed-off-by: Uwe Hermann --- postgres-backup/app/includes.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/postgres-backup/app/includes.sh b/postgres-backup/app/includes.sh index 9dcb2ed..d68064f 100644 --- a/postgres-backup/app/includes.sh +++ b/postgres-backup/app/includes.sh @@ -1,5 +1,6 @@ #!/bin/bash +# shellcheck disable=SC2034 ENV_FILE="/.env" CRON_CONFIG_FILE="${HOME}/crontabs" BACKUP_DIR="/backups/tmp" @@ -35,6 +36,7 @@ function check_dir_exist() { # Arguments: # None ######################################## +# shellcheck disable=SC2153 function configure_postgresql() { echo "${POSTGRES_HOST}:${POSTGRES_PORT}:${POSTGRES_DB}:${POSTGRES_USER}:${POSTGRES_PASSWORD}" > ~/.pgpass chmod 0600 ~/.pgpass @@ -49,6 +51,8 @@ function configure_postgresql() { # Reference: # https://gist.github.com/judy2k/7656bfe3b322d669ef75364a46327836#gistcomment-3632918 ######################################## +# shellcheck source=/dev/null +# shellcheck disable=SC2012 function export_env_file() { if [[ -f "${ENV_FILE}" ]]; then echo "find \"${ENV_FILE}\" file and export variables" @@ -143,6 +147,7 @@ function init_env() { echo "========================================" } +# shellcheck disable=SC2034 function init_env_db() { DB_TYPE="POSTGRESQL"