diff --git a/.metadata b/.metadata index 888c535..76648dc 100644 Binary files a/.metadata and b/.metadata differ diff --git a/.recipes/wordpress_mariadb/tools/backup.d/storage_backup.sh b/.recipes/wordpress_mariadb/tools/backup.d/storage_backup.sh index 44bf200..3150486 100644 --- a/.recipes/wordpress_mariadb/tools/backup.d/storage_backup.sh +++ b/.recipes/wordpress_mariadb/tools/backup.d/storage_backup.sh @@ -7,8 +7,11 @@ # # Call as a Docker manager user (member of the docker Linux group) via cron. # -# Author: Kovács Zoltán +# Author: Kovács Zoltán +# Kovács Zoltán # License: GNU/GPL 3+ https://www.gnu.org/licenses/gpl-3.0.en.html +# 2025-05-20 v0.3 +# fix: a stupid typo in service name conversion. # 2025-03-05 v0.2.1 # mod: reworded some comments and renamed a variable. # 2024-08-25 v0.2 @@ -112,7 +115,7 @@ BACKUPDIR="${PAR_BACKUPDIR:-$BASE_DIR/$BACKUPDIR}" # Converts the service name to an actual running container's name. # -MYCONTAINER="$("$DOCKER" inspect -f '{{.Name}}' $(cd "$BASE_DIR"; "$DOCKER_COMPOSE" $commandline ps -q "$SERVICENAME") | "$CUT" -c2-)" +MYCONTAINER="$("$DOCKER" inspect -f '{{.Name}}' $(cd "$BASE_DIR"; "$DOCKER_COMPOSE" $commandstring ps -q "$SERVICENAME") | "$CUT" -c2-)" # Gives up here if failed. if [ -z "$MYCONTAINER" ]; then echo "$MSG_NOLOCATE" >&2; exit 1; fi