aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/start-solo-tool.sh
blob: 5ef98a02d21bd0d1cdc0b9e47314a26d8c3ad57b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/bash

# Wait until git server is reachable
until ping -c1 git.0xf7.com >/dev/null 2>&1; do :; done

# Get latest version
git pull

# Wait until virtual MIDI interface is available
count=0
until aconnect -l | grep "SoloTool Virtual MIDI"; do 
    sleep 0.5
    if [[ $count -gt 60 ]]
    then
        break
    fi
done

# Run web UI
ST_USER=$(cat $CREDENTIALS_DIRECTORY/st_user) ST_PASS=$(cat $CREDENTIALS_DIRECTORY/st_pass) make web-deploy