diff --git a/src/freedombone-restore-local b/src/freedombone-restore-local index f64f320f..8f4caab3 100755 --- a/src/freedombone-restore-local +++ b/src/freedombone-restore-local @@ -66,7 +66,10 @@ if [ -f $COMPLETION_FILE ]; then fi # MariaDB password -DATABASE_PASSWORD=$(cat /root/dbpass) +DATABASE_PASSWORD='' +if [ -f /root/dbpass ]; then + DATABASE_PASSWORD=$(cat /root/dbpass) +fi function check_backup_exists { if [ ! -d $USB_MOUNT/backup ]; then diff --git a/src/freedombone-restore-remote b/src/freedombone-restore-remote index d8ae33e2..29e51e72 100755 --- a/src/freedombone-restore-remote +++ b/src/freedombone-restore-remote @@ -94,7 +94,10 @@ else fi # MariaDB password -DATABASE_PASSWORD=$(cat /root/dbpass) +DATABASE_PASSWORD='' +if [ -f /root/dbpass ]; then + DATABASE_PASSWORD=$(cat /root/dbpass) +fi function copy_gpg_keys { echo $"Copying GPG keys from admin user to root"