* MOD: cleanup
Test stage / check and test (push) Failing after 7s

Signed-off-by: Uwe Hermann <uh@uleenucks.de>
This commit is contained in:
2024-01-21 09:10:23 +01:00
parent 212b30ee8b
commit 6044c5a4c0
+5
View File
@@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
# shellcheck disable=SC2034
ENV_FILE="/.env" ENV_FILE="/.env"
CRON_CONFIG_FILE="${HOME}/crontabs" CRON_CONFIG_FILE="${HOME}/crontabs"
BACKUP_DIR="/backups/tmp" BACKUP_DIR="/backups/tmp"
@@ -35,6 +36,7 @@ function check_dir_exist() {
# Arguments: # Arguments:
# None # None
######################################## ########################################
# shellcheck disable=SC2153
function configure_postgresql() { function configure_postgresql() {
echo "${POSTGRES_HOST}:${POSTGRES_PORT}:${POSTGRES_DB}:${POSTGRES_USER}:${POSTGRES_PASSWORD}" > ~/.pgpass echo "${POSTGRES_HOST}:${POSTGRES_PORT}:${POSTGRES_DB}:${POSTGRES_USER}:${POSTGRES_PASSWORD}" > ~/.pgpass
chmod 0600 ~/.pgpass chmod 0600 ~/.pgpass
@@ -49,6 +51,8 @@ function configure_postgresql() {
# Reference: # Reference:
# https://gist.github.com/judy2k/7656bfe3b322d669ef75364a46327836#gistcomment-3632918 # https://gist.github.com/judy2k/7656bfe3b322d669ef75364a46327836#gistcomment-3632918
######################################## ########################################
# shellcheck source=/dev/null
# shellcheck disable=SC2012
function export_env_file() { function export_env_file() {
if [[ -f "${ENV_FILE}" ]]; then if [[ -f "${ENV_FILE}" ]]; then
echo "find \"${ENV_FILE}\" file and export variables" echo "find \"${ENV_FILE}\" file and export variables"
@@ -143,6 +147,7 @@ function init_env() {
echo "========================================" echo "========================================"
} }
# shellcheck disable=SC2034
function init_env_db() { function init_env_db() {
DB_TYPE="POSTGRESQL" DB_TYPE="POSTGRESQL"