entrypoint logic

This commit is contained in:
Alexandre
2021-11-13 13:02:39 +01:00
parent 2acb25daf8
commit 11b402cb10
16 changed files with 144 additions and 76 deletions

View File

@@ -27,9 +27,9 @@ RUN \
VOLUME [ "/data" ]
WORKDIR /
RUN chmod 777 /run.sh
RUN chmod 777 /entrypoint.sh
ENTRYPOINT [ "/bin/bash" ]
CMD [ "/run.sh" ]
CMD [ "/entrypoint.sh" ]
# use /data instead of /config for hass.io environment
# && sed -i "s|/config|/share/freqtrade|g" /etc/services.d/freqtrade/run \

View File

@@ -1,4 +1,4 @@
#!/bin/bah
#!/bin/bash
echo "Starting"
@@ -9,7 +9,5 @@ if [ ! -f /data/config.json ]; then
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