Skip to content

Commit

Permalink
Remove unneeded check for database type
Browse files Browse the repository at this point in the history
  • Loading branch information
mape2k committed Oct 31, 2020
1 parent 5bfa97a commit 84ee66e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql-ssh-backup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 84ee66e

Please sign in to comment.