Install mariadb if it isn't already

This commit is contained in:
Bob Mottram 2016-10-24 22:07:31 +01:00
parent 036cbad80a
commit 26e1713cbf
2 changed files with 12 additions and 0 deletions

View File

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

View File

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