[Helper] Fix mariadb restore when "all" is selected, thanks to @takigama
parent
a036d5d5f1
commit
e01c24aa05
|
@ -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..."
|
||||
|
|
Loading…
Reference in New Issue