mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
16 lines
407 B
Bash
16 lines
407 B
Bash
#!/bin/bash
|
|
|
|
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
|
|
|
|
pause 36000000000
|
|
|
|
echo "Starting app"
|
|
freqtrade trade --logfile /data/logs/freqtrade.log --db-url sqlite://///data/tradesv3.sqlite --config /data/config.json --strategy SampleStrategy
|