~ted/ubuntu-app-launch/uri-splitting

26.1.1 by Ted Gould
Adding a shell script to insert the initctl path if on buildd's
1
#!/bin/bash
2
29.1.1 by Ted Gould
Changing the script to check for upstart versions
3
UPSTARTVERSION=`initctl version | sed 's/[[:alpha:]\)|(|[:space:]]//g' | awk -F- '{print $1}' | awk -F. '{print $2}'`
4
29.1.2 by Ted Gould
Flipping around the test and just printing debug info if we fail
5
# Only test on newer versions of Upstart, like not the
6
# versions on the builders
7
if [ ${UPSTARTVERSION} -gt 7 ] ; then
8
	init-checkconf $1
26.1.1 by Ted Gould
Adding a shell script to insert the initctl path if on buildd's
9
else
29.1.2 by Ted Gould
Flipping around the test and just printing debug info if we fail
10
	echo "Upstart Version: $UPSTARTVERSION"
11
	echo "  ....Skipping Tests"
26.1.1 by Ted Gould
Adding a shell script to insert the initctl path if on buildd's
12
fi