From 9ec2bf6cbdd7187d97edf96703e3256ccc177d74 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Tue, 1 Nov 2016 20:52:42 +0000
Subject: [PATCH] function name clash

---
 src/freedombone-utils-backup | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/freedombone-utils-backup b/src/freedombone-utils-backup
index 15860a6e9..51c4384c5 100755
--- a/src/freedombone-utils-backup
+++ b/src/freedombone-utils-backup
@@ -189,7 +189,7 @@ function backup_unmount_drive {
     fi
 }
 
-function backup_database_local {
+function backup_database_local_usb {
     if [ ${#DATABASE_PASSWORD} -lt 2 ]; then
         echo $"No MariaDB password was given"
         function_check restart_site
@@ -307,7 +307,7 @@ function restore_directory_from_friend {
 function backup_database_to_usb {
     database_name=$1
     local_database_dir=/root/temp${1}data
-    backup_database_local ${database_name}
+    backup_database_local_usb ${database_name}
     if [ ! -f ${local_database_dir}/${1}.sql ]; then
         echo $"Error backing up ${1} database to ${local_database_dir}/${1}.sql"
         exit 62383
-- 
GitLab