It's better. I was thinking more along the lines of avoiding the multiple `cd` and `sed` calls altogether by concatenating those defines in one `sh` call. Something like this I think:

```ruby
sh "cd #{name}/concrete/core/controllers/single_pages && sed -i '.bak' 's/.*{$salt}.*/&\\ $configuration .="\
   " \\\"define(\\\\\"ENABLE_NEWSFLOW_OVERLAY\\\\\", false);\\\\n"\
   " \\\"define(\\\\\"PERMISSIONS_MODEL\\\\\", \\\\\"advanced\\\\\");\\\\n"\
   " \\\"define(\\\\\"STATISTICS_TRACK_PAGE_VIEWS\\\\\", false);\\\\n"\
   " \\\"define(\\\\\"WHITE_LABEL_DASHBOARD_BACKGROUND_SRC\\\\\", \\\\\"\\/concrete\\/images\\/spacer.gif\\\\\");\\\\n"\
   " \\\"define(\\\\\"ENABLE_INTELLIGENT_SEARCH_HELP\\\\\", false);\\\\n\\\";/' install.php"
```