diff --git a/{{cookiecutter.project_slug}}/compose/production/postgres/maintenance/backup b/{{cookiecutter.project_slug}}/compose/production/postgres/maintenance/backup index 8da45561b..34516248a 100644 --- a/{{cookiecutter.project_slug}}/compose/production/postgres/maintenance/backup +++ b/{{cookiecutter.project_slug}}/compose/production/postgres/maintenance/backup @@ -21,7 +21,7 @@ message_welcome "Backing up the '${POSTGRES_DB}' database..." if [[ "${POSTGRES_USER}" == "postgres" ]]; then - message_error "Backing up as 'postgres' user is not supported. Assign 'POSTGRES_USER' env with something else and try again." + message_error "Backing up as 'postgres' user is not supported. Assign 'POSTGRES_USER' env with another one and try again." exit 1 fi diff --git a/{{cookiecutter.project_slug}}/compose/production/postgres/maintenance/restore b/{{cookiecutter.project_slug}}/compose/production/postgres/maintenance/restore index e13796e04..498140073 100644 --- a/{{cookiecutter.project_slug}}/compose/production/postgres/maintenance/restore +++ b/{{cookiecutter.project_slug}}/compose/production/postgres/maintenance/restore @@ -21,19 +21,19 @@ source "${working_dir}/_sourced/messages.sh" if [[ -z ${1+x} ]]; then - message_error "Backup filename is not specified." + message_error "Backup filename is not specified yet it is a required parameter. Make sure you provide one and try again." exit 1 fi backup_filename="${BACKUP_DIR_PATH}/${1}" if [[ ! -f "${backup_filename}" ]]; then - message_error "No backup with the specified filename found." + message_error "No backup with the specified filename found. Check out the 'backups' maintenance script output to see if there is one and try again." exit 1 fi message_welcome "Restoring the '${POSTGRES_DB}' database from the '${backup_filename}' backup..." if [[ "${POSTGRES_USER}" == "postgres" ]]; then - message_error "Restoring as 'postgres' user is not supported." + message_error "Restoring as 'postgres' user is not supported. Assign 'POSTGRES_USER' env with another one and try again." exit 1 fi