Commit Graph

77 Commits

Author SHA1 Message Date
Aparup Banerjee 9208714315 Merge branch 'w03_MDL-31166_m23_clipath' of https://github.com/skodak/moodle 2012-01-16 14:52:23 +08:00
Petr Skoda ad72df401f MDL-31166 do not try to cleanup data root paths in CLI install script
PARAM_TYPE can not be used for full OS paths. Admins have to enter correct data there, if not they get directory creation error.
2012-01-15 11:05:00 +01:00
Petr Skoda 5f0456ef27 MDL-31165 fix InnoDB conversion query to use ENGINE parameter instead of legacy TYPE 2012-01-15 10:32:08 +01:00
Aleksey Avdeev b1d533652b MDL-29046 use of install/distrolib.php in the CLI installer
Signed-off-by: Aleksey Avdeev <solo@altlinux.ru>
2012-01-08 15:14:15 +01:00
Eloy Lafuente (stronk7) 8ea233e7ad Merge branch 'MDL-30381-dataroot-install' of git://github.com/mudrd8mz/moodle 2011-11-23 01:11:01 +01:00
Eloy Lafuente (stronk7) 7242b051ac Merge branch 'MDL-30402-install-string' of git://github.com/mudrd8mz/moodle 2011-11-23 01:07:44 +01:00
David Mudrak 561d547173 MDL-30404 All Moodle caches can be now purged from CLI 2011-11-22 11:50:54 +01:00
David Mudrak 6e17567624 MDL-30402 Removing hard-coded English string from the CLI installer 2011-11-22 10:02:42 +01:00
David Mudrak b907d3f58c MDL-30381 Fixed the tempdir and cachedir value calculation
Instead of using the default dataroot location, the tempdir and cachedir
are now set under the real dataroot location specified via the argument
and/or the interactive session.

The patch also adds a PARAM_PATH check for the dataroot specified.
2011-11-21 16:01:18 +01:00
David Mudrak 12812ad5da MDL-30381 Fixed path to the cache directory in installers
This fixes the patch f848c0f6e6 introduced
in MDL-29351.
2011-11-21 15:48:31 +01:00
Sam Hemelryk 385f30f7a7 Merge branch 'MDL-29898-master-1' of git://git.luns.net.uk/moodle 2011-10-31 12:44:05 +13:00
Petr Skoda c1f55426ee MDL-29474 fix cli upgrade regression 2011-10-27 14:04:19 +02:00
Petr Skoda 72081a6f75 MDL-29474 add env and plugin test to cli db install 2011-10-27 13:56:22 +02:00
Petr Skoda f433088d5a MDL-29474 fix regressions in CLI install 2011-10-27 13:55:41 +02:00
Andrew Robert Nicols 3b3b8c6b0b MDL-29898: Fix documentation for CLI DB only installer 2011-10-24 12:31:16 +01:00
Tim Hunt 777781d16e MDL-29474 plugin dependencies: fix misspelling dependancies. 2011-10-20 11:13:45 +01:00
Tim Hunt faadd32696 MDL-29474 prevent install/upgrade if plugin dependancies not met. 2011-10-20 11:13:41 +01:00
Tim Hunt cc359566fe MDL-29474 admin index/plugins/environment pages: all ouptut code -> renderer. 2011-10-20 11:13:39 +01:00
Petr Skoda f848c0f6e6 MDL-29351 add missing temp and cache dirs to installers 2011-09-13 13:33:06 +02:00
Petr Skoda eab044a083 MDL-28634 fix forgotten references to Moodle 2.0 and old PHP version requirements 2011-08-06 23:00:02 +02:00
Andrew Robert Nicols 1a698e0090 MDL-28515 Add cli install options for fullname and shortname 2011-07-28 15:15:52 +01:00
Petr Skoda 1c71748dd1 MDL-27121 fix incorrect check_moodle_environment() version parameter
This prevents Moodle 2.0 from using environment info for 2.1 in the installer and CLI upgrade.
2011-04-09 17:43:52 +02:00
David Mudrak 74a4c9a9ee MDL-26914 When installing a lang pack, install all the grandparents too
All places where a language pack is installed now use the new language
package installer that takes case of the parental dependencies.
2011-03-31 12:21:05 +02:00
Petr Skoda 7119e1a0a7 MDL-26904 fix funny constant typo 2011-03-20 19:25:47 +01:00
David Mudrak 1a4d6a5b60 MDL-26609 Display information about the current version during the upgrade
As Eloy Lafuente noticed in the tracker discussion, we display the
information about the current version in the browser window title but
not at the screen itself. The patch fixes that by displaying the
information in the page heading instead of the page title.

Eloy's original idea to put the information into the grey message box
would require a change of [upgradesure,core_admin] string because
unfortunately it does not expect $a as an object but as a plain string.
2011-03-04 05:59:08 +01:00
David Mudrak dc41abd808 MDL-26609 Provide a link to a docs page for more help with Moodle versions and their maturity
Thanks Martin Dougiamas for this suggestion.
2011-03-04 05:59:08 +01:00
David Mudrak 3d673fc474 MDL-26609 Admins are warned if they try to install or upgrade to unstable version
The commit introduces four new constants that can be used to declare a
maturity level of Moodle core and, in the future, of extension plugins.
If the administrator is about to install or upgrade Moodle to a version
that is not considered as production-ready yet, a warning is displayed
before any change in the database.
2011-03-04 05:59:08 +01:00
Petr Skoda 743fff98dc MDL-26142 fix immediately spelling in strings, comments and code 2011-02-13 11:36:46 +01:00
Sam Hemelryk 081c914b39 backup MDL-25183 Added a dedicated CLI script for running automated backups 2010-11-12 07:05:18 +00:00
David Mudrak 9632db7aea MDL-23027 CLI installer allows to define site name and shortname
Credit goes to James Brisland for the submitted patch. I just polished
it a bit and changed the SQL condition that selects the site course
record from id=1 to format='site' (see xmldb_main_install() for how the
site course record is initialised, we should not rely on the id assigned
to it by the DB engine).
2010-10-27 19:18:45 +00:00
Petr Skoda 346c5887b1 MDL-24751 using new memory constants 2010-10-19 10:13:15 +00:00
Petr Skoda deba811a9c fixed comment typo 2010-09-05 19:19:40 +00:00
Petr Skoda 80380bd79b MDL-24089 preventing any plugin upgrades if downgraded core detected; localising error message 2010-09-05 19:16:42 +00:00
Petr Skoda 72c75d1a05 MDL-22657 fixed lost language selection in CLI installer 2010-09-01 08:37:46 +00:00
Petr Skoda 71904f4d2b MDL-23984 make_upload_directory() cleanup - we now throw exceptions by default which should prevent a lot of strange problems 2010-08-29 14:59:14 +00:00
Petr Skoda 211c90081f MDL-22625 workaround for missing default timezone in CLI install 2010-08-29 14:15:43 +00:00
Petr Skoda 6c2c2b53b9 MDL-23682 fixed help 2010-08-18 17:51:36 +00:00
Petr Skoda 90f3882555 MDL-23682 new MySQL engine migration script 2010-08-18 17:24:53 +00:00
Petr Skoda 28bd3d9ad3 MDL-23824 CLI script improvements - just define('CLI_SCRIPT', true) before require config.php; all incorrect uses of cli and web scripts are detected; refactored cron script - now in two separate sctipts; fix cli inline docs and help - we have to sudo to apache account; standardised cli script locations in auth plugins 2010-08-17 12:33:30 +00:00
Petr Skoda cf12835f33 fixed comment typo 2010-07-30 14:52:41 +00:00
Petr Skoda 91eb6730f0 MDL-23590 new installer for Penny :-) 2010-07-30 14:44:30 +00:00
Petr Skoda b7315f3502 MDL-23590 refactoring cli install before adding install_database.php + fixing problem with incorrect octal when default value accepted 2010-07-30 11:58:02 +00:00
Petr Skoda 30f581598a new php docs style 2010-07-30 11:14:36 +00:00
Petr Skoda 460ebd6c31 MDL-21249 fixed recent installer regression, sorry 2010-07-26 20:17:36 +00:00
Eloy Lafuente 7e60d0d6d7 MDL-22906 install - allow MS native drivers to be used everywhere 2010-06-24 16:48:11 +00:00
David Mudrak c31aa73c70 MDL-22812 Do not change dataroot path passed as argument
Because PARAM_SAFEPATH was applied on dataroot argument, directories
containing dots (eg. /var/www/data/moodle.tld.com) were silently
renamed. The patch removes the input validation on the argument. If the
enemy is executing scripts at the server, you are doomed anyway.
2010-06-17 15:40:07 +00:00
David Mudrak c4f8fd0c3d MDL-18797 The selected language pack fetched during install 2010-05-27 06:57:21 +00:00
Petr Skoda 3b5ff37f24 MDL-22546 removing dirroot from the config.php - this should finally solve the symbolic links issues because we know 100% what should be in $CFG->dirroot once we get into lib/setup.php, it is being initialised there automatically instead + more robust handling of dataroot + simplified config-dist.php and installer; the $CFG->admin is now visible only if admin directory can not be found; please note the old config.php's are still going to work, if admins remove the dirroot they have to add the __FILE__ into require_once lib/setup.php at the end of old config 2010-05-21 17:32:15 +00:00
David Mudrak 7be6768138 MDL-22295 CLI installer supports --chmod argument to define $CFG->directorypermissions 2010-05-20 13:40:45 +00:00
David Mudrak 7217676b92 MDL-22296 CLI installer allows to rename the administrator account username 2010-05-10 21:57:48 +00:00