Add trusted domain with bash script

help

#1

Hi,

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?


#2

You can use the occ-command:
https://doc.owncloud.org/server/9.1/admin_manual/configuration_server/occ_command.html#setting-an-array-configuration-value


#3

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