-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support importing arrays using occ config:import #22877
Comments
After reading #22131 I thought that version 9 would support importing arrays. Is that only with the |
From what I can tell from the source code: Yes. Changed the title thus. cc @nickvergessen As you seem to have written the importer. |
The correct syntax is: {
"system": {
"trusted_domains": [
"owncloud.alpha.lab",
"vm.alpha.lab"
]
}
} The system element is required to tell the command where to store the config (app config or system config). |
But in this case you can also use the delete+set command:
|
@nickvergessen Thanks! I totally did not realize that was the syntax I needed to use. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behaviour
config.php should be updated to contain the list of domains from the json file.
Actual behaviour
The command errors.
Server configuration
Operating system: Ubuntu 14.04
Web server: apache 2.4
Database: mysql
PHP version: 5.5
ownCloud version: from git: tag v9.0.0.0RC1
Updated from an older ownCloud or fresh install: updated from 8.2.2
Where did you install ownCloud from: Git
Signing status (ownCloud 9.0 and above): no idea
List of activated apps:
The content of config/config.php:
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Logs
ownCloud log (data/owncloud.log)
The text was updated successfully, but these errors were encountered: