From d30773b8772a4a25ca09488d0e25219022709005 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 22 Nov 2016 11:17:17 +0000 Subject: [PATCH] Update database backup to using password manager --- src/freedombone-upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/freedombone-upgrade b/src/freedombone-upgrade index f4c3b458..80672252 100755 --- a/src/freedombone-upgrade +++ b/src/freedombone-upgrade @@ -62,6 +62,11 @@ if [ $DEVELOPMENT_BRANCH ]; then fi fi +if grep "cat /root/dbpass" /usr/bin/backupdatabases; then + # update to using the password manager + sed -i "s|cat /root/dbpass|freedombone-pass -u root -a mariadb|g" /usr/bin/backupdatabases +fi + update-ca-certificates read_repo_servers