2
0

Update .recipes/mediawiki_mariadb/tools/backup.d/dumpdb_mysql.sh

Fixed typo in docker-compose version detection.
This commit is contained in:
kovacsz 2024-12-01 17:16:39 +01:00
parent 0517de2afb
commit df4e59ee9f

View File

@ -13,6 +13,8 @@
#
# Author: Kovács Zoltán <kovacs.zoltan@smartfront.hu>
# 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-24 v0.2
# new: docker-compose v2 compatibility - tested with Ubuntu 24.04 LTS.
# 2021-08-27 v0.1 Initial version.
@ -54,7 +56,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"