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

This commit is contained in:
andryyy
2020-06-03 08:22:55 +02:00
parent a036d5d5f1
commit e01c24aa05

View File

@@ -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..."