Implemented better parameter check

This commit is contained in:
Kevin Veen-Birkenbach 2024-01-12 15:42:51 +01:00
parent d2b699c271
commit 9d8e80f793
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ backup_sql="/$backup_folder/sql/$database_name.backup.sql"
# DATABASE RECOVERY
if [ -f "$backup_sql" ]; then
if [ ! -z "$database_type" ]; then
if [ "$database_type" = "postgres" ]; then
if [ -n "$database_container" ] && [ -n "$database_password" ] && [ -n "$database_name" ]; then
echo "Recover PostgreSQL dump"