From 08f320b76a1423cf97a71f490ebac7edd48c4358 Mon Sep 17 00:00:00 2001 From: tiagom62 Date: Fri, 16 Sep 2016 19:17:04 -0400 Subject: [PATCH] DB_DUMP_PATH not set when using install.sh (#2623) Backup errors out when DB_DUMP_PATH is not set. According to https://snipe-it.readme.io/docs/configuration#required-database-settings this is usually '/usr/bin' --- snipeit.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snipeit.sh b/snipeit.sh index 64879816ea27..2872af0a7431 100755 --- a/snipeit.sh +++ b/snipeit.sh @@ -200,6 +200,7 @@ case $distro in DB_PASSWORD=$mysqluserpw APP_URL=http://$fqdn APP_KEY=$random32 + DB_DUMP_PATH='/usr/bin' EOF echo "## Setting up hosts file." @@ -315,6 +316,7 @@ case $distro in DB_PASSWORD=$mysqluserpw APP_URL=http://$fqdn APP_KEY=$random32 + DB_DUMP_PATH='/usr/bin' EOF ## TODO make sure mysql is set to start on boot and go ahead and start it @@ -447,6 +449,7 @@ case $distro in DB_PASSWORD=$mysqluserpw APP_URL=http://$fqdn APP_KEY=$random32 + DB_DUMP_PATH='/usr/bin' EOF @@ -561,7 +564,7 @@ case $distro in DB_PASSWORD=$mysqluserpw APP_URL=http://$fqdn APP_KEY=$random32 - + DB_DUMP_PATH='/usr/bin' EOF # Change permissions on directories