Implemented better parameter check
This commit is contained in:
1 parent
d2b699c271
commit
9d8e80f793
1 file changed
+1
-1
@@ -24,7 +24,7 @@ backup_sql="/$backup_folder/sql/$database_name.backup.sql"
|
|||||||
|
|
||||||
# DATABASE RECOVERY
|
# DATABASE RECOVERY
|
||||||
|
|
||||||
if [ -f "$backup_sql" ]; then
|
if [ ! -z "$database_type" ]; then
|
||||||
if [ "$database_type" = "postgres" ]; then
|
if [ "$database_type" = "postgres" ]; then
|
||||||
if [ -n "$database_container" ] && [ -n "$database_password" ] && [ -n "$database_name" ]; then
|
if [ -n "$database_container" ] && [ -n "$database_password" ] && [ -n "$database_name" ]; then
|
||||||
echo "Recover PostgreSQL dump"
|
echo "Recover PostgreSQL dump"
|
||||||
|
|||||||
Reference in new issue
Block a user