fixing indentation
This commit is contained in:
parent
44ea83b986
commit
69b18fc4b6
@ -16,34 +16,34 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
moodleConfig = pkgs.writeText "config.php"
|
moodleConfig = pkgs.writeText "config.php"
|
||||||
''<?php
|
''
|
||||||
unset($CFG);
|
<?php
|
||||||
global $CFG;
|
unset($CFG);
|
||||||
$CFG = new stdClass();
|
global $CFG;
|
||||||
$CFG->dbtype = '${config.dbType}';
|
$CFG = new stdClass();
|
||||||
$CFG->dblibrary = 'native';
|
$CFG->dbtype = '${config.dbType}';
|
||||||
$CFG->dbhost = '${config.dbHost}';
|
$CFG->dblibrary = 'native';
|
||||||
$CFG->dbname = '${config.dbName}';
|
$CFG->dbhost = '${config.dbHost}';
|
||||||
$CFG->dbuser = '${config.dbUser}';
|
$CFG->dbname = '${config.dbName}';
|
||||||
$CFG->dbpass = '${config.dbPassword}';
|
$CFG->dbuser = '${config.dbUser}';
|
||||||
$CFG->prefix = '${config.dbPrefix}';
|
$CFG->dbpass = '${config.dbPassword}';
|
||||||
$CFG->dboptions = array(
|
$CFG->prefix = '${config.dbPrefix}';
|
||||||
'dbpersist' => false,
|
$CFG->dboptions = array(
|
||||||
'dbsocket' => false,
|
'dbpersist' => false,
|
||||||
'dbport' => "${config.dbPort}",
|
'dbsocket' => false,
|
||||||
);
|
'dbport' => "${config.dbPort}",
|
||||||
$CFG->wwwroot = '${config.wwwRoot}';
|
);
|
||||||
$CFG->dataroot = '${config.dataRoot}';
|
$CFG->wwwroot = '${config.wwwRoot}';
|
||||||
$CFG->directorypermissions = 02777;
|
$CFG->dataroot = '${config.dataRoot}';
|
||||||
$CFG->admin = 'admin';
|
$CFG->directorypermissions = 02777;
|
||||||
${optionalString (config.debug.noEmailEver == true) ''
|
$CFG->admin = 'admin';
|
||||||
$CFG->noemailever = true;
|
${optionalString (config.debug.noEmailEver == true) ''
|
||||||
''}
|
$CFG->noemailever = true;
|
||||||
|
''}
|
||||||
|
|
||||||
${config.extraConfig}
|
${config.extraConfig}
|
||||||
require_once(dirname(__FILE__) . '/lib/setup.php'); // Do not edit
|
require_once(dirname(__FILE__) . '/lib/setup.php'); // Do not edit
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Unpack Moodle and put the config file in its root directory.
|
# Unpack Moodle and put the config file in its root directory.
|
||||||
moodleRoot = pkgs.stdenv.mkDerivation rec {
|
moodleRoot = pkgs.stdenv.mkDerivation rec {
|
||||||
name= "moodle-2.8.5";
|
name= "moodle-2.8.5";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user