` :
```xml
...
- %USERNAME%
- %PASSWORD%
+ %USERNAME%
+ %PASSWORD%
...
```
ii. **Ensure that the project-specific directories are Apache-writeable**: `project/instruments/` and `project/tables_sql/`
-**[[NEXT: (4) Imaging Database|Imaging-Database]]**
\ No newline at end of file
+**[[NEXT: (4) Imaging Database|Imaging-Database]]**
diff --git a/modules/instrument_manager/README.md b/modules/instrument_manager/README.md
index 5707af9cb3c..f283ed2e3f5 100644
--- a/modules/instrument_manager/README.md
+++ b/modules/instrument_manager/README.md
@@ -49,5 +49,6 @@ directories (to write the instrument itself, and instrument table
patch respectively.)
In order to automatically source the SQL patch and fully configure
-LINST instruments, the LORIS `quatUser` and `quatPassword` configuration
+LINST instruments, the LORIS `adminUser` and `adminPassword` configuration
must be set to a user which has the MySQL `CREATE TABLE` permission.
+
diff --git a/modules/instrument_manager/jsx/instrumentManagerIndex.js b/modules/instrument_manager/jsx/instrumentManagerIndex.js
index 83f570899c4..9d475c2bcc0 100644
--- a/modules/instrument_manager/jsx/instrumentManagerIndex.js
+++ b/modules/instrument_manager/jsx/instrumentManagerIndex.js
@@ -111,7 +111,7 @@ class InstrumentManagerIndex extends Component {
return (
Instrument installation is not possible given the current server
- configuration; the LORIS 'quatUser' is not configured properly.
+ configuration; the LORIS 'adminUser' is not configured properly.
File upload is still possible but instruments will need to be
installed manually
diff --git a/modules/instrument_manager/php/instrument_manager.class.inc b/modules/instrument_manager/php/instrument_manager.class.inc
index c815f53608a..2459d4e9295 100644
--- a/modules/instrument_manager/php/instrument_manager.class.inc
+++ b/modules/instrument_manager/php/instrument_manager.class.inc
@@ -169,7 +169,7 @@ class Instrument_Manager extends \NDB_Menu_Filter
* Instead, inform users that an administrator must install it
* on their behalf.
* This should only happen for users on a system where automatic
- * installation is disabled (ie. has no quatUser).
+ * installation is disabled (ie. has no adminUser).
*/
return new \LORIS\Http\Response\JSON\Conflict(
self::FILE_ALREADY_EXISTS
@@ -189,7 +189,7 @@ class Instrument_Manager extends \NDB_Menu_Filter
);
if (!$this->isQuatUserConfigured()) {
- // If no quatUser is configured, automatic installation is not
+ // If no adminUser is configured, automatic installation is not
// possible, so this is the last step.
return (new \LORIS\Http\Response())
->withStatus(200, 'OK')
@@ -224,8 +224,8 @@ class Instrument_Manager extends \NDB_Menu_Filter
exec(
"mysql".
" -h" . escapeshellarg($db_config['host']).
- " -u" . escapeshellarg($db_config['quatUser']).
- " -p" . escapeshellarg($db_config['quatPassword']).
+ " -u" . escapeshellarg($db_config['adminUser']).
+ " -p" . escapeshellarg($db_config['adminPassword']).
" " . escapeshellarg($db_config['database']).
" < " . $this->path . "project/tables_sql/".
escapeshellarg($table_name . '.sql'),
@@ -591,21 +591,21 @@ class Instrument_Manager extends \NDB_Menu_Filter
}
/**
- * Return whether the quatUser is properly configured, ie. credentials are
+ * Return whether the adminUser is properly configured, ie. credentials are
* set and are valid.
- * The quatUser is a MySQL user with CREATE table permissions.
+ * The adminUser is a MySQL user with CREATE table permissions.
* `empty` is used instead of `isset` as blank values in the config file
* are still considered set.
*
- * @return bool True if a quatUser is configured properly. False if not.
+ * @return bool True if a adminUser is configured properly. False if not.
*/
protected function isQuatUserConfigured() : bool
{
$db = $this->factory->database();
$db_config = $this->factory->config()->getSetting('database');
- $credentials_set = !empty($db_config['quatUser'])
- && !empty($db_config['quatPassword']);
+ $credentials_set = !empty($db_config['adminUser'])
+ && !empty($db_config['adminPassword']);
if (!$credentials_set) {
return false;
}
@@ -615,8 +615,8 @@ class Instrument_Manager extends \NDB_Menu_Filter
try {
$connected = $db->connect(
$db_config['database'],
- $db_config['quatUser'],
- $db_config['quatPassword'],
+ $db_config['adminUser'],
+ $db_config['adminPassword'],
$db_config['host'],
false
);
diff --git a/raisinbread/config/config.xml b/raisinbread/config/config.xml
index 5322c2b7381..dbe8e93c350 100644
--- a/raisinbread/config/config.xml
+++ b/raisinbread/config/config.xml
@@ -20,8 +20,8 @@
%USERNAME%
%PASSWORD%
%DATABASE%
- %USERNAME%
- %PASSWORD%
+ %USERNAME%
+ %PASSWORD%
Example database