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

Admin CLI install script prompts for values that it doesn't use when the skip-database option is given

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.5, 3.6.3, 3.7
    • Fix Version/s: None
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide
      1. Clone moodle integration repo (mdk create -t -n thenameyouwant)
      2. Go to that moodle root folder.
      3. Run php admin/cli/install.php --skip-database
      4. Make sure you are not prompted for user name, full name, email and password.
      5. Proceed with the install through CLI, it should be completed without any problems.
      Show
      Clone moodle integration repo (mdk create -t -n thenameyouwant) Go to that moodle root folder. Run php admin/cli/install.php --skip-database Make sure you are not prompted for user name, full name, email and password. Proceed with the install through CLI, it should be completed without any problems.
    • Affected Branches:
      MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-65453-master

      Description

      The admin/cli/install.php script still prompts the user for values such as the site short name, full name, admin email address, admin password even when it's run with the --skip-database flag.

      This is confusing for the user because those values are only set as part of the database install. This means that when --skip-database is set the values aren't actually saved anywhere even though the user provides them.

      Instead the user must set them again when running the admin/cli/install_database.php script or the admin can do it when the log into the site.

      The install script probably shouldn't prompt the user for those values if the --skip-database flag is given.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 30 minutes
                  5h 30m