Skip to content

Commit

Permalink
Fixes #16410 - handle several instances of "server" in ipa config
Browse files Browse the repository at this point in the history
  • Loading branch information
pronix authored and dmitri-d committed Sep 1, 2016
1 parent 350b4cf commit e02ca04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbin/foreman-prepare-realm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ die() { echo "$@" 1>&2; exit 1; }
[ ! -z $1 ] || usage
[ ! -z $2 ] || usage

SERVER=$(grep server /etc/ipa/default.conf | cut -f2 -d"=")
SERVER=$(grep '^server\s*=' /etc/ipa/default.conf | cut -f2 -d"=")

if ipa --version 2>&1 | grep -q 'VERSION'
then
Expand Down

0 comments on commit e02ca04

Please sign in to comment.