Skip to content

Commit

Permalink
install jq for autotune
Browse files Browse the repository at this point in the history
  • Loading branch information
scottleibrand committed Jan 9, 2017
1 parent f693d27 commit 2c6b874
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions bin/oref0-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -523,11 +523,12 @@ openaps report add enact/suggested.json text determine-basal shell monitor/iob.j

# configure autotune if enabled
if [[ $ENABLE =~ autotune ]]; then
cd $directory || die "Can't cd $directory"
for type in autotune; do
echo importing $type file
cat $HOME/src/oref0/lib/oref0-setup/$type.json | openaps import || die "Could not import $type.json"
done
sudo apt-get -y install jq
cd $directory || die "Can't cd $directory"
for type in autotune; do
echo importing $type file
cat $HOME/src/oref0/lib/oref0-setup/$type.json | openaps import || die "Could not import $type.json"
done
fi

# Create ~/.profile so that openaps commands can be executed from the command line
Expand Down

0 comments on commit 2c6b874

Please sign in to comment.