mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-17 18:08:16 +01:00
14 lines
387 B
Bash
14 lines
387 B
Bash
#!/bin/bah
|
|
|
|
echo "Starting"
|
|
|
|
if [ ! -f /data/config.json ]; then
|
|
echo "building userdir"
|
|
freqtrade create-userdir --userdir /data \
|
|
echo "building initial config"
|
|
freqtrade new-config --config /data/config.json \
|
|
fi
|
|
|
|
echo "Starting app"
|
|
freqtrade trade --logfile /data/logs/freqtrade.log --db-url sqlite://///data/tradesv3.sqlite --config /data/config.json --strategy SampleStrategy
|