mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-01 17:37:44 +01:00
entrypoint logic
This commit is contained in:
15
webtrees/rootfs/entrypoint.sh
Normal file
15
webtrees/rootfs/entrypoint.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user