summaryrefslogtreecommitdiffstats
path: root/lib/private/Setup.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #11446 from nextcloud/bugfix/10678/pretty-urls-dont-workMorris Jobke2018-10-021-3/+2
|\ | | | | Allow overwrite.cli.url without trailing slash
| * Allow url without / for overwrite.cli.urlDaniel Kesselberg2018-09-281-3/+2
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Validate email in occ commandDaniel Kesselberg2018-10-021-6/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Use setUserValue instead setEMailAddress because latter omits an changeUser ↵Daniel Kesselberg2018-10-021-8/+10
| | | | | | | | | | | | events. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Add --admin-email to cli installerDaniel Kesselberg2018-10-021-0/+9
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Change visibility to privateDaniel Kesselberg2018-09-131-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Change return false to throw newDaniel Kesselberg2018-09-101-5/+12
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Extract logic for webroot into method and add testDaniel Kesselberg2018-09-101-9/+22
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Add the jobRoeland Jago Douma2018-05-141-0/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Correct mistaken regex wildcard in .htaccessDan Callahan2018-02-281-1/+1
| | | | | | Fixes #8578 Signed-off-by: Dan Callahan <dan.callahan@gmail.com>
* Fix proper overwrite URL on CLI installMorris Jobke2018-02-071-3/+8
| | | | | | | | | | | | | * regression from #7835 Steps * having a my.config.php with a proper `overwrite.cli.url` and `htaccess.RewriteBase` set * install with this * before: short URLs where broken and you need to call `occ maintenance:update:htaccess` additionally to fix this * after: occ install results in a proper htaccess like on stable13 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Handle SSL certificate verifications for others than Let's EncryptRobert Scheck2018-02-051-1/+1
| | | | | | | | | | | | | | | | | Do no longer (wrongly) rewrite URLs like * http://example.net/.well-known/pki-validation/file.txt (Comodo) * http://example.net/.well-known/pki-validation/fileauth.txt (DigiCert, Thawte, GeoTrust) * http://example.net/.well-known/pki-validation/gsdv.txt (GlobalSign) * http://example.net/.well-known/pki-validation/starfield.htm (Starfield, GoDaddy) * http://example.net/.well-known/pki-validation/swisssign-check.txt (SwissSign) for automated SSL certificate verifications. All (common commercial) certificate authorities (CA) except Let's Encrypt (via ACME) seem to use "pki-validation" rather "acme-challenge" for their domain control validation (DCV). Signed-off-by: Robert Scheck <robert@fedoraproject.org>
* Fix case when overwrite URL is empty during setupMorris Jobke2018-01-151-0/+3
| | | | | | Found while testing strict typing for PHP 7+. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Get the Installer via DIMorris Jobke2017-11-251-12/+16
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Revert "Only allow colons in db host for IPv6 addresses"Morris Jobke2017-11-081-16/+0
| | | | | | This reverts commit 1287d6ddb303fc9b088b8a6837490042a1540dc6. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Run updated license header updaterMorris Jobke2017-11-071-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-1/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add logrote as a default background jobRoeland Jago Douma2017-10-241-1/+4
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Code clean upJoas Schilling2017-09-261-48/+47
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only allow colons in db host for IPv6 addressesJoas Schilling2017-09-261-0/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix L10N::tRoeland Jago Douma2017-08-011-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix 403 and 404 redirectMorris Jobke2017-07-261-2/+2
| | | | | | | | * Nextcloud is not properly loaded in the standalone version (especially the theming) * it is already not listed anymore in the Nginx config (see nextcloud/documentation#392) * the index.php-free version doesn't support this Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Install from migrationsJoas Schilling2017-07-251-2/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Start migrationsJoas Schilling2017-07-051-0/+2
| | | | | | | | | | Fixme: - Install and update of apps - No revert on live systems (debug only) - Service adjustment to our interface - Loading via autoloader Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't redirect requests to /core/img/manifest.jsonLukas Reschke2017-05-091-0/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add app bundlesLukas Reschke2017-04-261-2/+18
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-091-5/+7
| | | | | | | | | | | | | * currently there are two ways to access default values: OCP\Defaults or OC_Defaults (which is extended by OCA\Theming\ThemingDefaults) * our code used a mixture of both of them, which made it hard to work on theme values * this extended the public interface with the missing methods and uses them everywhere to only rely on the public interface Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use SystemConfig instead of AllConfig for DB stuffMorris Jobke2017-03-191-9/+9
| | | | | | * preparation for followup PRs to clean up the DB bootstrapping Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Namespace and array syntax fixesMorris Jobke2017-03-191-7/+7
| | | | | | * minor fixes in preparation of a bigger DB and config PR Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Serve robots.txt if the RewriteBase is configuredFrank Isemann2017-03-061-0/+1
|
* Update Setup.phpKB77772017-02-241-1/+1
|
* Merge pull request #3576 from robert-scheck/timezoneMorris Jobke2017-02-231-5/+0
|\ | | | | According to issue #3553, the default logtimezone is always UTC
| * According to issue #3553, the default logtimezone is always UTCRobert Scheck2017-02-231-5/+0
| | | | | | | | Signed-off-by: Robert Scheck <robert@fedoraproject.org>
* | Only request "IndexIgnore" if mod_autoindex is loadedRobert Scheck2017-02-201-0/+2
|/ | | | Signed-off-by: Robert Scheck <robert@fedoraproject.org>
* Set vendor during installMorris Jobke2017-02-091-0/+15
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove useless dependency on SQLite (non-PDO)Morris Jobke2017-01-251-5/+3
| | | | | | | * we only require the PDO driver * fixes #481 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Introduce an event for first time login based on the last login time stampThomas Müller2016-11-141-9/+9
| | | | | | | | | | | | Use firstLogin event to trigger creation of default calendar and default address book Delay login of admin user after setup so that firstLogin event can properly be processed for the admin Fixing tests ... Skeleton files are not copied over -> only 3 cache entries are remaining Use updateLastLoginTimestamp to properly setup lastLogin value for a test user
* Update docsJoas Schilling2016-09-131-1/+2
|
* Display an error when updating .htaccess failedJoas Schilling2016-09-131-1/+2
|
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-3/+4
|
* Merge pull request #405 from nextcloud/theming-fixesBjörn Schießle2016-07-181-1/+1
|\ | | | | Theming fixes
| * Use the themed Defaults everywhereJoas Schilling2016-07-151-1/+1
| |
* | dont check for pgsql extension during setupRobin Appelman2016-07-121-2/+2
|/
* Remove unneeded checks if it runs on a Windows machineMorris Jobke2016-07-081-4/+0
| | | | * the setup check is still there
* Update license headersLukas Reschke2016-05-261-2/+3
|
* when generating browser/device token, save the login name for later password ↵Christoph Wurst2016-05-241-1/+1
| | | | checks
* login explicitlyChristoph Wurst2016-05-241-0/+1
|
* Do not automatically try to enable index.php-less URLs (#24539)Lukas Reschke2016-05-121-20/+30
| | | | | | | | | | | | | | | | | The current logic for mod_rewrite relies on the fact that people have properly configured ownCloud, basically it reads from the `overwrite.cli.ur l` entry and then derives the `RewriteBase` from it. This usually works. However, since the ownCloud packages seem to install themselves at `/owncloud` (because subfolders are cool or so…) _a lot_ of people have just created a new Virtual Host for it or have simply symlinked the path etc. This means that `overwrite.cli.url` is wrong, which fails hard if it is used as RewriteBase since Apache does not know where it should serve files from. In the end the ownCloud instance will not be accessible anymore and users will be frustrated. Also some shared hosters like 1&1 (because using shared hosters is so awesome… ;-)) have somewhat dubious Apache configurations or use versions of mod_rewrite from the mediveal age. (because updating is money or so…) Anyhow. This makes this explicitly an opt-in configuration flag. If `htaccess.RewriteBase` is set then it will configure index.php-less URLs, if admins set that after installation and don't want to wait until the next ownCloud version they can run `occ maintenance:update:htaccess`. For ownCloud 9.0 we also have to add a repair step to make sure that instances that already have a RewriteBase configured continue to use it by copying it into the config file. That way all existing URLs stay valid. That one is not in this PR since this is unneccessary in master. Effectively this reduces another risk of breakage when updating from ownCloud 8 to ownCloud 9. Fixes https://github.com/owncloud/core/issues/24525, https://github.com/owncloud/core/issues/24426 and probably some more.
* fix setupChristoph Wurst2016-05-111-1/+8
|