Add trusted domain with bash script


I am creating a bash script that will work with my Vagrant script, to create an automated install of owncloud.
I get it all up and running fine, but I want to add a trusted domain.

If I replace the config file, it breaks the install, because secret key and db password change every time I install it.

Is there are a way I update the script and inject a domain in the new config file?

You can use the occ-command:

Nice - that will work a bit better then my hack I created :slight_smile: