mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 04:14:04 +02:00
entrypoint logic
This commit is contained in:
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user