mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup.git
synced 2024-12-22 05:36:16 +01:00
Implemented better parameter check
This commit is contained in:
parent
d2b699c271
commit
9d8e80f793
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user