From 2e01888ce88a5e7a824faf8b55cf79d6f04a12bf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 18 Mar 2012 23:23:17 +0100 Subject: [PATCH] Work on debian package --- build/debian/dolibarr.postinst | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/build/debian/dolibarr.postinst b/build/debian/dolibarr.postinst index cdee802e986..91e3d9346e8 100644 --- a/build/debian/dolibarr.postinst +++ b/build/debian/dolibarr.postinst @@ -83,15 +83,29 @@ case "$1" in chown -R root:www-data $installconfig chmod -R 660 $installconfig - # Create an empty conf.php with permission to web server if [ ! -f $config ] then + # Create an empty conf.php with permission to web server echo Create empty file $config touch $config - chown -R root:www-data $config chmod -R 660 $config + chown -R root:www-data $config + else + # File already exist. We add params not found. + // Add new params to overwrite path to use shared libraries/fonts + grep -q -c "dolibarr_lib_ADODB_PATH" $config || echo "" >> $config + grep -q -c "dolibarr_lib_FPDI_PATH" $config || echo "" >> $config + grep -q -c "dolibarr_lib_GEOIP_PATH" $config || echo "" >> $config + grep -q -c "dolibarr_lib_NUSOAP_PATH" $config || echo "" >> $config + grep -q -c "dolibarr_lib_ODTPHP_PATHTOPCLZIP" $config || echo "" >> $config + grep -q -c "dolibarr_lib_PHPEXCEL_PATH" $config || echo "" >> $config + grep -q -c "dolibarr_lib_TCPDF_PATH" $config || echo "" >> $config + grep -q -c "dolibarr_js_CKEDITOR" $config || echo "" >> $config + grep -q -c "dolibarr_js_JQUERY" $config || echo "" >> $config + grep -q -c "dolibarr_js_JQUERY_UI" $config || echo "" >> $config + grep -q -c "dolibarr_js_JQUERY_FLOT" $config || echo "" >> $config + grep -q -c "dolibarr_font_DOL_DEFAULT_TTF_BOLD" $config || echo "" >> $config fi - db_get dolibarr/reconfigure-webserver