diff --git a/.recipes/wordpress_mariadb/tools/backup.d/dumpdb_mysql.sh b/.recipes/wordpress_mariadb/tools/backup.d/dumpdb_mysql.sh index 02f3f61..24a530a 100644 --- a/.recipes/wordpress_mariadb/tools/backup.d/dumpdb_mysql.sh +++ b/.recipes/wordpress_mariadb/tools/backup.d/dumpdb_mysql.sh @@ -12,6 +12,8 @@ # # Author: Kovács Zoltán # License: GNU/GPL 3+ https://www.gnu.org/licenses/gpl-3.0.en.html +# 2024-12-01 v0.2.1 +# fix: typo in docker-compose version detection. # 2024-08-25 v0.2 # new: docker-compose v2 compatibility - tested with Ubuntu 24.04 LTS. # 2021-10-19 v0.1 Initial version. @@ -53,7 +55,7 @@ done # All dependencies are available via "$THECOMMAND" (upper case) call. # # Let's find which version of docker-compose is installed. -if [ $($DOCKER compose version 2>&1 >/dev/null; echo $?) -eq 0 ]; then +if [ $($DOCKER compose version >/dev/null 2>&1; echo $?) -eq 0 ]; then # We'll use v2 if it is available. DOCKER_COMPOSE="$DOCKER" commandstring="compose"