From 26e1713cbfd7a04faf730fca690aa168cba76ee4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 24 Oct 2016 22:07:31 +0100 Subject: [PATCH] Install mariadb if it isn't already --- src/freedombone-restore-local | 6 ++++++ src/freedombone-restore-remote | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/freedombone-restore-local b/src/freedombone-restore-local index 8f4caab3..019ce9aa 100755 --- a/src/freedombone-restore-local +++ b/src/freedombone-restore-local @@ -168,6 +168,12 @@ function restore_mariadb { return fi fi + + if [[ $(is_completed install_mariadb) == "0" ]]; then + function_check install_mariadb + install_mariadb + fi + if [ -d $USB_MOUNT/backup/mariadb ]; then echo $"Restoring mysql settings" temp_restore_dir=/root/tempmariadb diff --git a/src/freedombone-restore-remote b/src/freedombone-restore-remote index 29e51e72..af62d285 100755 --- a/src/freedombone-restore-remote +++ b/src/freedombone-restore-remote @@ -162,6 +162,12 @@ function restore_mariadb { return fi fi + + if [[ $(is_completed install_mariadb) == "0" ]]; then + function_check install_mariadb + install_mariadb + fi + if [ -d $SERVER_DIRECTORY/backup/mariadb ]; then echo $"Restoring MariaDB settings" temp_restore_dir=/root/tempmariadb