mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-06 15:45:56 +02:00
Binance trading bot
This commit is contained in:
29
binance-trading-bot/rootfs/etc/cont-init.d/99-run.sh
Normal file
29
binance-trading-bot/rootfs/etc/cont-init.d/99-run.sh
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
##############
|
||||
# Export env #
|
||||
##############
|
||||
|
||||
##################
|
||||
# Starting redis #
|
||||
##################
|
||||
exec redis-server & bashio::log.info "Starting redis"
|
||||
|
||||
####################
|
||||
# Starting mongodb #
|
||||
####################
|
||||
mkdir -p /data/db
|
||||
exec mongod --bind_ip 127.0.0.1 & bashio::log.info "Starting mongod"
|
||||
|
||||
################
|
||||
# Starting app #
|
||||
################
|
||||
cd /srv || true
|
||||
npm start docker-entrypoint.sh & bashio::log.info "Starting binance bot"
|
||||
|
||||
#########################
|
||||
# Starting Trading View #
|
||||
#########################
|
||||
bashio::log.info "Starting trading view"
|
||||
python main.py
|
||||
Reference in New Issue
Block a user