-
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
Setup command #14416
Setup command #14416
Conversation
Refer to this link for build results (access rights to CI server needed): |
} | ||
} else { | ||
echo "ownCloud or on of the apps require upgrade - only a limited number of commands is available" . PHP_EOL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on => one
nice 👍 |
Refer to this link for build results (access rights to CI server needed): |
throw new InvalidArgumentException("Database <$db> is not supported."); | ||
} | ||
|
||
$dbUser = $input->getOption('database-user'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build $options array here instead?
621e67e
to
3d5e6ea
Compare
Refer to this link for build results (access rights to CI server needed): |
3d5e6ea
to
f46d8ca
Compare
f46d8ca
to
bcd10d3
Compare
Refer to this link for build results (access rights to CI server needed): |
@bantu @Xenopathic any further objections? Otherwise I'd like to merge this - THX |
Just tested with no options: it attempts to create an sqlite database, then just prints 'Array' and fails. The oC instance isn't installed properly. EDIT: Same thing when trying to create a MySQL instance. Logs say it is at |
During the failed MySQL installation, the DB pass isn't written to the config, which probably explains part of the errors. |
THX - well - this is because of this bloody errors array being returned and holding different data types ..... 😠 |
@Xenopathic you might want to try it again - thanks for testing! |
Refer to this link for build results (access rights to CI server needed): |
Well I tried my best to break it... but couldn't. Looks like it's a nice robust solution! Only issue I can see is a minor one: the config.php is generated with a NULL trusted_domain, and a bad overwrite.cli.url field: Otherwise, 👍 |
That's erm not really good - we need to have at least one trusted domain or it won't work in real life deployments. (localhost is always whitelisted) |
I'll have a look .... |
@LukasReschke @Xenopathic please review and test again - thanks a lot! |
The inspection completed: 11 new issues, 6 updated code elements |
Refer to this link for build results (access rights to CI server needed): |
Works if executed as webserver user - nice! 👍 Once #14357 is merged the .htaccess will also get generated properly. |
This time I see |
That will lead to quite some broken stuff. IMHO it's okay to have this defaulting to localhost as people using |
Right, in that case, 👍 🚀 |
This broke master due to "OC_Config" having been omitted. Did Jenkins lie about this PR passing ? |
No. The |
Fix here: #14936 |
@LukasReschke @PVince81 @th3fallen @icewind1991 please review - THX
In case the owncloud instance is not yet setup the number of commands will be pretty short:
maintenance:install is the command to be used for installing an instance via the console: