Skip to content
Snippets Groups Projects
Commit 036cbad8 authored by Bob Mottram's avatar Bob Mottram
Browse files

Check if database password file exists

parent b11d27c3
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,10 @@ if [ -f $COMPLETION_FILE ]; then ...@@ -66,7 +66,10 @@ if [ -f $COMPLETION_FILE ]; then
fi fi
# MariaDB password # MariaDB password
DATABASE_PASSWORD=$(cat /root/dbpass) DATABASE_PASSWORD=''
if [ -f /root/dbpass ]; then
DATABASE_PASSWORD=$(cat /root/dbpass)
fi
function check_backup_exists { function check_backup_exists {
if [ ! -d $USB_MOUNT/backup ]; then if [ ! -d $USB_MOUNT/backup ]; then
......
...@@ -94,7 +94,10 @@ else ...@@ -94,7 +94,10 @@ else
fi fi
# MariaDB password # MariaDB password
DATABASE_PASSWORD=$(cat /root/dbpass) DATABASE_PASSWORD=''
if [ -f /root/dbpass ]; then
DATABASE_PASSWORD=$(cat /root/dbpass)
fi
function copy_gpg_keys { function copy_gpg_keys {
echo $"Copying GPG keys from admin user to root" echo $"Copying GPG keys from admin user to root"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment