Skip to content

Commit

Permalink
DB_DUMP_PATH not set when using install.sh (#2623)
Browse files Browse the repository at this point in the history
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'
  • Loading branch information
tiagom62 authored and snipe committed Sep 16, 2016
1 parent 2d8269d commit 08f320b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion snipeit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -447,6 +449,7 @@ case $distro in
DB_PASSWORD=$mysqluserpw
APP_URL=http://$fqdn
APP_KEY=$random32
DB_DUMP_PATH='/usr/bin'
EOF


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 08f320b

Please sign in to comment.