take into account ENV var for snapshots
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
DB_FILE="finance.db"
|
||||
if [ "$ENV" == "production" ]; then
|
||||
DB_FILE="/data/finance.db"
|
||||
else
|
||||
DB_FILE="./finance.db"
|
||||
fi
|
||||
HISTORY_TABLE="finance_history"
|
||||
# Current date in the format you've been using
|
||||
DATE_STR=$(date +%Y-%m-%d)
|
||||
|
||||
Reference in New Issue
Block a user