Skip to content

Commit

Permalink
Merge pull request redhat-openstack#24 from domcleal/changeme
Browse files Browse the repository at this point in the history
Set each password differently to the last
  • Loading branch information
jsomara committed May 29, 2013
2 parents 292c976 + c9f965a commit 334bffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/foreman_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export PASSWD_COUNT=$(cat foreman-params.json | grep changeme | wc -l)
for i in $(seq $PASSWD_COUNT)
do
export PASSWD=$(scl enable ruby193 "ruby foreman-setup.rb password")
sed -i "s/CHANGEME/$PASSWD" foreman-params.json
sed -i "/CHANGEME/ {s/CHANGEME/$PASSWD/;:a;n;ba}" foreman-params.json
done

scl enable ruby193 "ruby foreman-setup.rb proxy"
Expand Down

0 comments on commit 334bffd

Please sign in to comment.