Work on rpm package
This commit is contained in:
parent
96dc78ed52
commit
bd0d3b939c
@ -1,9 +1,5 @@
|
|||||||
# This file is useless.
|
# This file is useless.
|
||||||
# It is provided as example to know contexts modified by installer
|
# It is provided as example to know contexts modified by installer
|
||||||
# to make Dolibarr working.
|
# 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
|
/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
|
/var/lib/dolibarr(/.*?) system_u:object_r:httpd_sys_script_rw_t:s0
|
||||||
@ -63,18 +63,14 @@ $configfileparameters=array(
|
|||||||
'separator',
|
'separator',
|
||||||
'dolibarr_main_authentication',
|
'dolibarr_main_authentication',
|
||||||
'separator',
|
'separator',
|
||||||
'?dolibarr_main_auth_ldap_login_attribute',
|
'dolibarr_main_auth_ldap_login_attribute',
|
||||||
'?dolibarr_main_auth_ldap_host',
|
'dolibarr_main_auth_ldap_host',
|
||||||
'?dolibarr_main_auth_ldap_port',
|
'dolibarr_main_auth_ldap_port',
|
||||||
'?dolibarr_main_auth_ldap_version',
|
'dolibarr_main_auth_ldap_version',
|
||||||
'?dolibarr_main_auth_ldap_dn',
|
'dolibarr_main_auth_ldap_dn',
|
||||||
'?dolibarr_main_auth_ldap_admin_login',
|
'dolibarr_main_auth_ldap_admin_login',
|
||||||
'?dolibarr_main_auth_ldap_admin_pass',
|
'dolibarr_main_auth_ldap_admin_pass',
|
||||||
'?dolibarr_main_auth_ldap_debug',
|
'dolibarr_main_auth_ldap_debug'
|
||||||
'separator',
|
|
||||||
'?dolibarr_lib_ADODB_PATH',
|
|
||||||
'?dolibarr_lib_ODTPHP_PATH',
|
|
||||||
'?dolibarr_lib_ODTPHP_PATHTOPCLZIP'
|
|
||||||
);
|
);
|
||||||
$configfilelib=array(
|
$configfilelib=array(
|
||||||
// 'separator',
|
// 'separator',
|
||||||
@ -102,11 +98,7 @@ $configfilelib=array(
|
|||||||
'dolibarr_main_auth_ldap_dn',
|
'dolibarr_main_auth_ldap_dn',
|
||||||
'dolibarr_main_auth_ldap_admin_login',
|
'dolibarr_main_auth_ldap_admin_login',
|
||||||
'dolibarr_main_auth_ldap_admin_pass',
|
'dolibarr_main_auth_ldap_admin_pass',
|
||||||
'dolibarr_main_auth_ldap_debug',
|
'dolibarr_main_auth_ldap_debug'
|
||||||
'separator',
|
|
||||||
'dolibarr_lib_ADODB_PATH',
|
|
||||||
'dolibarr_lib_ODTPHP_PATH',
|
|
||||||
'dolibarr_lib_ODTPHP_PATHTOPCLZIP'
|
|
||||||
);
|
);
|
||||||
$var=true;
|
$var=true;
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
@ -124,23 +116,9 @@ foreach($configfileparameters as $key)
|
|||||||
|
|
||||||
if (empty($ignore))
|
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;
|
$var=!$var;
|
||||||
print "<tr ".$bc[$var].">";
|
print "<tr ".$bc[$var].">";
|
||||||
if ($newkey == 'separator')
|
if ($key == 'separator')
|
||||||
{
|
{
|
||||||
print '<td colspan="3"> </td>';
|
print '<td colspan="3"> </td>';
|
||||||
}
|
}
|
||||||
@ -149,17 +127,16 @@ foreach($configfileparameters as $key)
|
|||||||
// Label
|
// Label
|
||||||
print "<td>".$configfilelib[$i].'</td>';
|
print "<td>".$configfilelib[$i].'</td>';
|
||||||
// Key
|
// Key
|
||||||
print '<td>'.$newkey.'</td>';
|
print '<td>'.$key.'</td>';
|
||||||
// Value
|
// Value
|
||||||
print "<td>";
|
print "<td>";
|
||||||
if ($newkey == 'dolibarr_main_db_pass') print preg_replace('/./i','*',${$newkey});
|
if ($key == 'dolibarr_main_db_pass') print preg_replace('/./i','*',${$key});
|
||||||
else if ($newkey == 'dolibarr_main_url_root' && preg_match('/__auto__/',${$newkey})) print ${$newkey}.' => '.constant('DOL_MAIN_URL_ROOT');
|
else if ($key == 'dolibarr_main_url_root' && preg_match('/__auto__/',${$key})) print ${$key}.' => '.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 if ($key == 'dolibarr_main_url_root_alt' && preg_match('/__auto__/',${$key})) print ${$key}.' => '.constant('DOL_MAIN_URL_ROOT_ALT');
|
||||||
else print ${$newkey};
|
else print ${$key};
|
||||||
print "</td>";
|
print "</td>";
|
||||||
}
|
}
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
$lastkeyshown=$newkey;
|
|
||||||
}
|
}
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -254,13 +254,13 @@ $dolibarr_main_prod='0';
|
|||||||
##############################
|
##############################
|
||||||
|
|
||||||
# Value to overwrite path to use shared libraries instead of embedded one
|
# Value to overwrite path to use shared libraries instead of embedded one
|
||||||
#$dolibarr_lib_ADODB_PATH='/usr/share/php/adodb';
|
#$dolibarr_lib_ADODB_PATH='';
|
||||||
# Value to overwrite path to use shared libraries instead of embedded one
|
# Value to overwrite path to use shared libraries instead of embedded one
|
||||||
#$dolibarr_lib_TCPDF_PATH='';
|
#$dolibarr_lib_TCPDF_PATH='';
|
||||||
# Value to overwrite path to use shared libraries instead of embedded one
|
# Value to overwrite path to use shared libraries instead of embedded one
|
||||||
#$dolibarr_lib_FPDFI_PATH='';
|
#$dolibarr_lib_FPDFI_PATH='';
|
||||||
# Value to overwrite path to use shared libraries instead of embedded one
|
# Value to overwrite path to use shared libraries instead of embedded one
|
||||||
#$dolibarr_lib_NUSOAP_PATH='/usr/share/nusoap/';
|
#$dolibarr_lib_NUSOAP_PATH='';
|
||||||
# Value to overwrite path to use shared libraries instead of embedded one
|
# Value to overwrite path to use shared libraries instead of embedded one
|
||||||
#$dolibarr_lib_PHPEXCEL_PATH='';
|
#$dolibarr_lib_PHPEXCEL_PATH='';
|
||||||
# Value to overwrite path to use shared libraries instead of embedded one
|
# Value to overwrite path to use shared libraries instead of embedded one
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user