More code comment. Rename /home/dolibarr_data into

/home/dolibarr_documents
This commit is contained in:
Laurent Destailleur
2024-09-08 21:29:48 +02:00
parent 40f4d2efc3
commit aadadb0762
17 changed files with 68 additions and 37 deletions

View File

@@ -1,5 +1,8 @@
#!/usr/bin/env php
<?php
# This script is called by the docker-run.sh script to enabled modules during Dolibarr first installation.
# It is embedded into the Docker image of dolibarr/dolibarr.
require_once '../htdocs/master.inc.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php';
@@ -32,9 +35,9 @@ if (!empty(getenv('DOLI_ENABLE_MODULES'))) {
$mods = explode(',', getenv('DOLI_ENABLE_MODULES'));
foreach ($mods as $mod) {
printf("Activating module ".$mod." ...");
try {
try {
$res = activateModule('mod' . $mod);
if ($res < 0) {
if ($res < 0) {
print(" FAILED. Unable to load module. Be sure to check the case\n");
} else {
printf(" OK\n");