SHARE
TWEET

Untitled

a guest Oct 13th, 2019 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env bash
  2.  
  3. PARAMETERS=app/config/parameters.yml
  4.  
  5. sed -ri "s/^(\s*database_host:\s*).+$/\1 $DB_HOST/" "$PARAMETERS"
  6. sed -ri "s/^(\s*database_port:\s*).+$/\1 $DB_PORT/" "$PARAMETERS"
  7. sed -ri "s/^(\s*database_name:\s*).+$/\1 $DB_NAME/" "$PARAMETERS"
  8. sed -ri "s/^(\s*test_db_name:\s*).+$/\1 $DB_NAME/" "$PARAMETERS"
  9. sed -ri "s/^(\s*database_user:\s*).+$/\1 $DB_USER/" "$PARAMETERS"
  10. sed -ri "s/^(\s*database_password:\s*).+$/\1 $DB_PASSWORD/" "$PARAMETERS"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top