New: Show param to overwite lib path
This commit is contained in:
parent
274214f82e
commit
911117f6ce
@ -25,7 +25,7 @@ BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
Group: Applications/Productivity
|
||||
Requires: httpd, php >= 5.3.0, php-cli, php-gd, php-ldap, php-imap, php-mysql, dejavu-sans-fonts
|
||||
Requires: httpd, php >= 5.3.0, php-cli, php-gd, php-ldap, php-imap, php-mysql, php-adodb, php-nusoap, dejavu-sans-fonts
|
||||
Requires: mysql-server, mysql
|
||||
#BuildRequires: desktop-file-utils
|
||||
|
||||
|
||||
@ -1,5 +1,9 @@
|
||||
# This file is useless.
|
||||
# It is provided as example to know contexts modified by installer
|
||||
# to make Dolibarr working.
|
||||
#
|
||||
# Note: To allow temporary write permission for httpd:
|
||||
# chcon -R -h -t httpd_sys_script_rw_t /dirtoallow
|
||||
#
|
||||
/etc/dolibarr(/.*?) system_u:object_r:httpd_sys_script_rw_t:s0
|
||||
/var/lib/dolibarr(/.*?) system_u:object_r:httpd_sys_script_rw_t:s0
|
||||
@ -18,6 +18,13 @@ $force_install_dolibarrlogin='admin';
|
||||
$force_install_nophpinfo='1';
|
||||
$force_install_lockinstall='444';
|
||||
|
||||
# Value to overwrite path to use shared libraries instead of embedded one
|
||||
$dolibarr_lib_ADODB_PATH='/usr/share/php/adodb';
|
||||
# Value to overwrite path to use shared libraries instead of embedded one
|
||||
$dolibarr_lib_NUSOAP_PATH='/usr/share/php/nusoap';
|
||||
# Value to overwrite path to use shared libraries instead of embedded one
|
||||
#$dolibarr_lib_ODTPHP_PATHTOPCLZIP="/usr/share/php/libphp-pclzip";
|
||||
|
||||
#$force_dolibarr_lib_GEOIP_PATH='';
|
||||
#$force_dolibarr_lib_ODTPHP_PATHTOPCLZIP='/usr/share/php/libphp-pclzip';
|
||||
$force_dolibarr_font_DOL_DEFAULT_TTF_BOLD='/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf';
|
||||
|
||||
@ -63,14 +63,25 @@ $configfileparameters=array(
|
||||
'separator',
|
||||
'dolibarr_main_authentication',
|
||||
'separator',
|
||||
'dolibarr_main_auth_ldap_login_attribute',
|
||||
'dolibarr_main_auth_ldap_host',
|
||||
'dolibarr_main_auth_ldap_port',
|
||||
'dolibarr_main_auth_ldap_version',
|
||||
'dolibarr_main_auth_ldap_dn',
|
||||
'dolibarr_main_auth_ldap_admin_login',
|
||||
'dolibarr_main_auth_ldap_admin_pass',
|
||||
'dolibarr_main_auth_ldap_debug'
|
||||
'?dolibarr_main_auth_ldap_login_attribute',
|
||||
'?dolibarr_main_auth_ldap_host',
|
||||
'?dolibarr_main_auth_ldap_port',
|
||||
'?dolibarr_main_auth_ldap_version',
|
||||
'?dolibarr_main_auth_ldap_dn',
|
||||
'?dolibarr_main_auth_ldap_admin_login',
|
||||
'?dolibarr_main_auth_ldap_admin_pass',
|
||||
'?dolibarr_main_auth_ldap_debug',
|
||||
'separator',
|
||||
'?dolibarr_lib_ADODB_PATH',
|
||||
'?dolibarr_lib_TCPDF_PATH',
|
||||
'?dolibarr_lib_FPDFI_PATH',
|
||||
'?dolibarr_lib_NUSOAP_PATH',
|
||||
'?dolibarr_lib_PHPEXCEL_PATH',
|
||||
'?dolibarr_lib_GEOIP_PATH',
|
||||
'?dolibarr_lib_ODTPHP_PATH',
|
||||
'?dolibarr_lib_ODTPHP_PATHTOPCLZIP',
|
||||
'?dolibarr_font_DOL_DEFAULT_TTF',
|
||||
'?dolibarr_font_DOL_DEFAULT_TTF_BOLD'
|
||||
);
|
||||
$configfilelib=array(
|
||||
// 'separator',
|
||||
@ -98,7 +109,18 @@ $configfilelib=array(
|
||||
'dolibarr_main_auth_ldap_dn',
|
||||
'dolibarr_main_auth_ldap_admin_login',
|
||||
'dolibarr_main_auth_ldap_admin_pass',
|
||||
'dolibarr_main_auth_ldap_debug'
|
||||
'dolibarr_main_auth_ldap_debug',
|
||||
'separator',
|
||||
'dolibarr_lib_ADODB_PATH',
|
||||
'dolibarr_lib_TCPDF_PATH',
|
||||
'dolibarr_lib_FPDFI_PATH',
|
||||
'dolibarr_lib_NUSOAP_PATH',
|
||||
'dolibarr_lib_PHPEXCEL_PATH',
|
||||
'dolibarr_lib_GEOIP_PATH',
|
||||
'dolibarr_lib_ODTPHP_PATH',
|
||||
'dolibarr_lib_ODTPHP_PATHTOPCLZIP',
|
||||
'dolibarr_font_DOL_DEFAULT_TTF',
|
||||
'dolibarr_font_DOL_DEFAULT_TTF_BOLD'
|
||||
);
|
||||
$var=true;
|
||||
print '<table class="noborder" width="100%">';
|
||||
@ -116,9 +138,23 @@ foreach($configfileparameters as $key)
|
||||
|
||||
if (empty($ignore))
|
||||
{
|
||||
$newkey = preg_replace('/^\?/','',$key);
|
||||
|
||||
if (preg_match('/^\?/',$key) && empty(${$newkey}))
|
||||
{
|
||||
$i++;
|
||||
continue; // We discard parametes starting with ?
|
||||
}
|
||||
|
||||
if ($newkey == 'separator' && $lastkeyshown == 'separator')
|
||||
{
|
||||
$i++;
|
||||
continue;
|
||||
}
|
||||
|
||||
$var=!$var;
|
||||
print "<tr ".$bc[$var].">";
|
||||
if ($key == 'separator')
|
||||
if ($newkey == 'separator')
|
||||
{
|
||||
print '<td colspan="3"> </td>';
|
||||
}
|
||||
@ -127,16 +163,17 @@ foreach($configfileparameters as $key)
|
||||
// Label
|
||||
print "<td>".$configfilelib[$i].'</td>';
|
||||
// Key
|
||||
print '<td>'.$key.'</td>';
|
||||
print '<td>'.$newkey.'</td>';
|
||||
// Value
|
||||
print "<td>";
|
||||
if ($key == 'dolibarr_main_db_pass') print preg_replace('/./i','*',${$key});
|
||||
else if ($key == 'dolibarr_main_url_root' && preg_match('/__auto__/',${$key})) print ${$key}.' => '.constant('DOL_MAIN_URL_ROOT');
|
||||
else if ($key == 'dolibarr_main_url_root_alt' && preg_match('/__auto__/',${$key})) print ${$key}.' => '.constant('DOL_MAIN_URL_ROOT_ALT');
|
||||
else print ${$key};
|
||||
if ($newkey == 'dolibarr_main_db_pass') print preg_replace('/./i','*',${$newkey});
|
||||
else if ($newkey == 'dolibarr_main_url_root' && preg_match('/__auto__/',${$newkey})) print ${$newkey}.' => '.constant('DOL_MAIN_URL_ROOT');
|
||||
else if ($newkey == 'dolibarr_main_url_root_alt' && preg_match('/__auto__/',${$newkey})) print ${$newkey}.' => '.constant('DOL_MAIN_URL_ROOT_ALT');
|
||||
else print ${$newkey};
|
||||
print "</td>";
|
||||
}
|
||||
print "</tr>\n";
|
||||
$lastkeyshown=$newkey;
|
||||
}
|
||||
$i++;
|
||||
}
|
||||
|
||||
@ -254,13 +254,13 @@ $dolibarr_main_prod='0';
|
||||
##############################
|
||||
|
||||
# Value to overwrite path to use shared libraries instead of embedded one
|
||||
#$dolibarr_lib_ADODB_PATH='';
|
||||
#$dolibarr_lib_ADODB_PATH='/usr/share/php/adodb';
|
||||
# Value to overwrite path to use shared libraries instead of embedded one
|
||||
#$dolibarr_lib_TCPDF_PATH='';
|
||||
# Value to overwrite path to use shared libraries instead of embedded one
|
||||
#$dolibarr_lib_FPDFI_PATH='';
|
||||
# Value to overwrite path to use shared libraries instead of embedded one
|
||||
#$dolibarr_lib_NUSOAP_PATH='';
|
||||
#$dolibarr_lib_NUSOAP_PATH='/usr/share/nusoap/';
|
||||
# Value to overwrite path to use shared libraries instead of embedded one
|
||||
#$dolibarr_lib_PHPEXCEL_PATH='';
|
||||
# Value to overwrite path to use shared libraries instead of embedded one
|
||||
|
||||
Loading…
Reference in New Issue
Block a user