From 04e352ad3a4f1a51723d5773b90ad449edbbc15a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 15 Dec 2014 20:21:42 +0000 Subject: [PATCH] Changing database password on restore --- install-freedombone.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index 8eb57950..9217241b 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -1138,7 +1138,8 @@ function create_restore_script { echo ' rm -rf /root/tempmariadb' >> /usr/bin/$RESTORE_SCRIPT_NAME echo '' >> /usr/bin/$RESTORE_SCRIPT_NAME echo ' # Change database password file' >> /usr/bin/$RESTORE_SCRIPT_NAME - echo " echo '$DATABASE_PASSWORD' > $DATABASE_PASSWORD_FILE" >> /usr/bin/$RESTORE_SCRIPT_NAME + echo -n ' echo "$DATABASE_PASSWORD" > ' >> /usr/bin/$RESTORE_SCRIPT_NAME + echo "$DATABASE_PASSWORD_FILE" >> /usr/bin/$RESTORE_SCRIPT_NAME echo " chmod 600 $DATABASE_PASSWORD_FILE" >> /usr/bin/$RESTORE_SCRIPT_NAME echo 'fi' >> /usr/bin/$RESTORE_SCRIPT_NAME echo '' >> /usr/bin/$RESTORE_SCRIPT_NAME