Skip to content

Commit a4a2a63

Browse files
committed
Support of Simple Monitor Version 1.1
1 parent 51ebd85 commit a4a2a63

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

config.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ IB_PATH=https://download2.interactivebrokers.com/installers/$PRODUCT/latest-stan
3434
IBC_VERSION=3.8.5
3535
IBC_PATH=https://github.com/IbcAlpha/IBC/releases/download/${IBC_VERSION}/IBCLinux-${IBC_VERSION}.zip
3636

37+
SIMPLE_MONITOR=https://github.com/ib-ruby/simple-monitor.git
38+
3739
## Täglicher Start von Gateway/TWS im crontab-Format (Minute Stunde)a
3840
## When to start Gateawy/TWS by cron
3941
START_TIME='5 5'

setup.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,11 +318,12 @@ install_simple_monitor(){
318318
$access_container sudo apt-get install -y rvm elinks git tmux # vim
319319
$access_container sudo usermod -a -G rvm ubuntu
320320
$access_container rvm install $RUBY_VERSION
321-
$access_container git clone https://github.com/ib-ruby/simple-monitor.git
322321
$access_container gem install bundler
322+
$access_container git clone $SIMPLE_MONITOR
323+
323324
lxc file push install_simple_monitor.sh $CONTAINER/home/ubuntu/
324325
if [ $DEMOACCOUNT -eq 0 ] ; then
325-
$access_container sed -in 's/:host: localhost/&:4001/g' /home/ubuntu/simple-monitor/tws_alias.yml
326+
$access_container sed -in 's/:host: localhost/&:4001/g' /home/ubuntu/simple-monitor/config.yml
326327
fi
327328
$access_container ./install_simple_monitor.sh
328329
} >> $SILENT
@@ -418,7 +419,7 @@ setup_reverse_tunnel(){
418419

419420
run_ats(){
420421
# starte die IB-Software
421-
local access_container="lxc exec $CONTAINER -- sudo --login --user ubuntu -- "
422+
local access_container="lxc exec $CONTAINER -- sudo --login --user ubuntu --"
422423
$access_container /home/ubuntu/ibc/${INSTANCE}start.sh -inline &
423424
sleep 5
424425
$access_container /home/ubuntu/simple-monitor/start-simple-monitor

0 commit comments

Comments
 (0)