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

Allow specification of admin user email in CLI installer

    XMLWordPrintable

Details

    • Any
    • MOODLE_21_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_29_STABLE
    • MDL-28513-master
    • Hide

      Install using the CLI, then configure admin profile using the interface

      Show
      Install using the CLI, then configure admin profile using the interface
    • Easy
    • Hide
      1. Move your config.php to a new location and open it for reference
      2. Run the CLI installer without options. This should put it into interactive mode
      3. Add all of the info from your previous config changing:
        1. DB prefix to t1_
        2. dataroot to /tmp/t1
      4. Do not specify the admin email address when asked
      5. After installation, log in
        • Confirm that you are shown the admin profile editing page
      6. Remove the config.php
      7. Run the CLI installer again, changing:
        1. DB prefix to t2_
        2. dataroot to /tmp/t2
      8. Specify an invalid email address when asked (FYI, Moodle incorrectly regards addresses without an @ sign as invalid - try that)
        • Confirm that the installation bailed
      9. Run the CLI installer again, changing:
        1. DB prefix to t2_
        2. dataroot to /tmp/t2
      10. Specify the admin email address when asked and provide a valid address
      11. After installation, log in
      12. View the admin profile
        • Confirm that the specified e-mail address was set
      13. Remove the config.php
      14. Run the CLI installer again, specifying CLI all relevant arguments including an invalid adminemail and non-interactive
        • Confirm that the installation bailed
      15. Run the CLI installer again, specifying CLI all relevant arguments including adminemail and non-interactive
      16. After installation, log in
      17. View the admin profile
        • Confirm that the specified e-mail address was set
      Show
      Move your config.php to a new location and open it for reference Run the CLI installer without options. This should put it into interactive mode Add all of the info from your previous config changing: DB prefix to t1_ dataroot to /tmp/t1 Do not specify the admin email address when asked After installation, log in Confirm that you are shown the admin profile editing page Remove the config.php Run the CLI installer again, changing: DB prefix to t2_ dataroot to /tmp/t2 Specify an invalid email address when asked (FYI, Moodle incorrectly regards addresses without an @ sign as invalid - try that) Confirm that the installation bailed Run the CLI installer again, changing: DB prefix to t2_ dataroot to /tmp/t2 Specify the admin email address when asked and provide a valid address After installation, log in View the admin profile Confirm that the specified e-mail address was set Remove the config.php Run the CLI installer again, specifying CLI all relevant arguments including an invalid adminemail and non-interactive Confirm that the installation bailed Run the CLI installer again, specifying CLI all relevant arguments including adminemail and non-interactive After installation, log in View the admin profile Confirm that the specified e-mail address was set

    Description

      It would make life easier for developers regularly installing fresh copies of moodle if it were possible to specify the required admin settings in the CLI installer.

      Attachments

        Issue Links

          Activity

            People

              dobedobedoh Andrew Lyons
              dobedobedoh Andrew Lyons
              Ankit Agarwal Ankit Agarwal
              David Monllaó David Monllaó
              Damyon Wiese Damyon Wiese
              Matteo Scaramuccia, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/May/15