Browse Source

[Helper] Fix mariadb restore when "all" is selected, thanks to @takigama

andryyy 5 years ago
parent
commit
e01c24aa05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      helper-scripts/backup_and_restore.sh

+ 1 - 1
helper-scripts/backup_and_restore.sh

@@ -200,7 +200,7 @@ function restore() {
         ${DEBIAN_DOCKER_IMAGE} /bin/tar -Pxvzf /backup/backup_postfix.tar.gz
       docker start $(docker ps -aqf name=postfix-mailcow)
       ;;
-    mysql)
+    mysql|mariadb)
       SQLIMAGE=$(grep -iEo '(mysql|mariadb)\:.+' ${COMPOSE_FILE})
       if [[ -z "${SQLIMAGE}" ]]; then
         echo "Could not determine SQL image version, skipping restore..."