Guest User

Untitled

a guest
Jul 22nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1.  
  2. bash "update database config with user/password" do
  3. cwd "/vagrant/goldstar/config"
  4. user "vagrant"
  5. code <<-EOH
  6. sed -i -e 's/WHATS_MY_NAME/root\n password: password/' #{config_dir}/database.yml
  7. EOH
  8. end
  9.  
  10. bash "update database config with user/password" do
  11. cwd "/vagrant/goldstar/config"
  12. user "vagrant"
  13. code <<-EOH
  14. sed -i -e '/host/i \
  15. port: 3306' #{config_dir}/database.yml
  16. EOH
  17. end
Add Comment
Please, Sign In to add comment