Allow freeipa environment file to be in /tmp
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Tue, 10 Jan 2017 22:19:18 +0000 (00:19 +0200)
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>
Tue, 10 Jan 2017 22:19:18 +0000 (00:19 +0200)
Relying on home can be tricky if run on CI, since we would need to
hard-code the user. So for this case, we can use /tmp to source that
environment file from.

bp tls-via-certmonger

Change-Id: Ie6234a15af7aa493257c13bd40cbf51ab36085be

ci/scripts/freeipa_setup.sh

index f6a0f92..9f5f2dc 100644 (file)
@@ -13,6 +13,8 @@ set -eux
 
 if [ -f "~/freeipa-setup.env" ]; then
     source ~/freeipa-setup.env
+elif [ -f "/tmp/freeipa-setup.env" ]; then
+    source /tmp/freeipa-setup.env
 fi
 
 # Set DNS servers