From 84ee66eadd2403e59f0272095f6528eb30bc3570 Mon Sep 17 00:00:00 2001 From: Marcel Pennewiss Date: Sat, 31 Oct 2020 18:20:05 +0100 Subject: [PATCH] Remove unneeded check for database type --- sql-ssh-backup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql-ssh-backup b/sql-ssh-backup index d0927c3..0eb61bf 100755 --- a/sql-ssh-backup +++ b/sql-ssh-backup @@ -174,7 +174,7 @@ prepare() (${MYSQL} || ${MONGODB}) && ${COMPRESS} && (which bzip2 > /dev/null 2>&1 || (echo "bzip2 not found and compression enabled! Skipping all backups!" >&2 && exit 1)) # check for installed xz while using mysql,pgsql or mongodb - ( ${MYSQL} || ${POSTGRESQL} || ${MONGODB} ) && ${COMPRESS_XZ} && (which xz > /dev/null 2>&1 || (echo "xz not found and compression enabled! Skipping all backups!" >&2 && exit 1)) + ${COMPRESS_XZ} && (which xz > /dev/null 2>&1 || (echo "xz not found and compression enabled! Skipping all backups!" >&2 && exit 1)) # abort if too man errors occured [ ${ERROR} -ge 1 ] && echo && echo "Too man errors occured. Aborting..." && exit 1