Browse Source

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

andryyy 5 năm trước cách đây
mục cha
commit
e01c24aa05

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