Merge branch 'master' of https://github.com/monarc-project/MonarcAppFO
commit
3e955d33ba
|
@ -149,12 +149,12 @@ service apache2 restart > /dev/null 2>&1
|
||||||
echo -e "\n--- Configuration of MONARC data base connection ---\n"
|
echo -e "\n--- Configuration of MONARC data base connection ---\n"
|
||||||
cat > config/autoload/local.php <<EOF
|
cat > config/autoload/local.php <<EOF
|
||||||
<?php
|
<?php
|
||||||
$appdir = getenv('APP_DIR') ? getenv('APP_DIR') : '$PATH_TO_MONARC';
|
\$appdir = getenv('APP_DIR') ? getenv('APP_DIR') : '$PATH_TO_MONARC';
|
||||||
$string = file_get_contents($appdir.'/package.json');
|
\$string = file_get_contents(\$appdir.'/package.json');
|
||||||
if($string === FALSE) {
|
if(\$string === FALSE) {
|
||||||
$string = file_get_contents('./package.json');
|
\$string = file_get_contents('./package.json');
|
||||||
}
|
}
|
||||||
$package_json = json_decode($string, true);
|
\$package_json = json_decode(\$string, true);
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
'doctrine' => array(
|
'doctrine' => array(
|
||||||
|
@ -196,6 +196,8 @@ return array(
|
||||||
*/
|
*/
|
||||||
'activeLanguages' => array('fr','en','de','ne',),
|
'activeLanguages' => array('fr','en','de','ne',),
|
||||||
|
|
||||||
|
'appVersion' => \$package_json['version'],
|
||||||
|
|
||||||
'email' => [
|
'email' => [
|
||||||
'name' => 'MONARC',
|
'name' => 'MONARC',
|
||||||
'from' => 'info@monarc.lu',
|
'from' => 'info@monarc.lu',
|
||||||
|
|
Loading…
Reference in New Issue