]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
testing: Load testing.conf.local from the same directory as testing.conf
authorTobias Brunner <tobias@strongswan.org>
Thu, 26 Sep 2013 15:00:21 +0000 (17:00 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 11 Oct 2013 13:45:42 +0000 (15:45 +0200)
testing/testing.conf

index 4b30ee04bd7b1badc40e4685c3bc89a3ef626aa7..1e691f8cdc8d534928421e0ec0fbee22dc0e191d 100644 (file)
 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 # for more details.
 
-if [ -f testing.conf.local ]
+TESTINGDIR=$(dirname `readlink -f ${BASH_SOURCE[0]}`)
+if [ -f $TESTINGDIR/testing.conf.local ]
 then
-       . testing.conf.local
+       . $TESTINGDIR/testing.conf.local
 fi
 
 # Root directory of testing