Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-46167

New option for CLI installation: skip database

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Clone a new Moodle instance.
      2. Create an empty database.
      3. Run admin/cli/install.php --skip-database.
      4. Verify that config.php is populated but that the database is empty.
      5. Run admin/cli/install_database.php --agree-license --adminpass=youradminpassword.
      6. Verify that the Moodle instance is installed.
      7. Drop and re-create the database and delete the config file.
      8. Run admin/cli/install.php.
      9. Verify that the Moodle instance is installed.
      Show
      Clone a new Moodle instance. Create an empty database. Run admin/cli/install.php --skip-database . Verify that config.php is populated but that the database is empty. Run admin/cli/install_database.php --agree-license --adminpass=youradminpassword . Verify that the Moodle instance is installed. Drop and re-create the database and delete the config file. Run admin/cli/install.php . Verify that the Moodle instance is installed.
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-46167-master

      Description

      It would be helpful to have an option for the CLI installation to skip the database install. This would allow you to write the config file with given values but save the database installation (which is already a completely separate script) for a later time.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  16/Nov/15