6 # -o pipefail: Fail on errors in scripts this calls, give stacktrace
9 # Install ODL from .deb link or .repo url
10 if [[ $URL == *.deb ]]
12 sudo apt-get install -y "$URL"
13 elif [[ $URL == ppa:* ]]
15 sudo add-apt-repository "$REPO_FILE"
17 sudo apt-get install -y opendaylight
19 echo "URL is not a link to a PPA repo or .deb"
22 # Install expect to interact with karaf shell
23 sudo apt-get install -y expect
26 sudo systemctl start opendaylight
28 # Check status of OpenDaylight
29 sudo systemctl status opendaylight
31 # Get process id of Java