Skip to content

Commit

Permalink
having '$' sign inside double quotation for echo argument is interpre…
Browse files Browse the repository at this point in the history
…ted as variable which need to be resolved. Single quotation need to be used to keep '$'.

https://bugzilla.redhat.com/show_bug.cgi?id=1438974
  • Loading branch information
yrudman committed Aug 11, 2017
1 parent 5a76195 commit 71b068c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def configure_sssd

def configure_ipa_http_service
say("Configuring IPA HTTP Service and Keytab ...")
AwesomeSpawn.run!("/bin/echo \"#{@password}\" | /usr/bin/kinit #{@principal}")
AwesomeSpawn.run!("/usr/bin/kinit", :params => [@principal], :stdin_data => @password)
service = Principal.new(:hostname => @host, :realm => realm, :service => "HTTP", :ca_name => "ipa")
service.register
AwesomeSpawn.run!(IPA_GETKEYTAB, :params => {"-s" => @ipaserver, "-k" => HTTP_KEYTAB, "-p" => service.name})
Expand Down

0 comments on commit 71b068c

Please sign in to comment.