mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 05:09:40 +02:00
Check if the mempool SQL file exists before attempting to import it (#2892)
This commit is contained in:
parent
6233d13ed5
commit
2884a9ffc6
@ -130,7 +130,9 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
sudo mariadb -e "CREATE DATABASE mempool;"
|
||||
sudo mariadb -e "GRANT ALL PRIVILEGES ON mempool.* TO 'mempool' IDENTIFIED BY 'mempool';"
|
||||
sudo mariadb -e "FLUSH PRIVILEGES;"
|
||||
mariadb -umempool -pmempool mempool < mariadb-structure.sql
|
||||
if [ -f "mariadb-structure.sql" ]; then
|
||||
mariadb -umempool -pmempool mempool < mariadb-structure.sql
|
||||
fi
|
||||
|
||||
echo "# npm install for mempool explorer (frontend)"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user