From ceccedcac0682aa531beebef1c3d6d220f29426e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 20 Feb 2011 14:34:20 +0000 Subject: [PATCH] Add creation of dir for documents --- build/deb/postinst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build/deb/postinst b/build/deb/postinst index 68a067f8cd7..3f502b41e93 100644 --- a/build/deb/postinst +++ b/build/deb/postinst @@ -29,7 +29,7 @@ case "$1" in # Copy include for apache.conf fileorig="/usr/share/dolibarr/build/deb/apache.conf" config="/etc/dolibarr/apache.conf" - mkdir -p /etc/dolibarr + mkdir -p /etc/dolibarr cp -p $fileorig $config # Create install.forced.php @@ -49,6 +49,12 @@ case "$1" in cat $fileorig | sed -e 's/__SUPERUSERLOGIN__/'$superuserlogin'/g' | sed -e 's/__SUPERUSERPASSWORD__/'$superuserpassword'/g' > $config fi + # Create /var/lib/dolibarr/documents + mkdir -p /var/lib/dolibarr/documents + chown -R www-data.www-data /var/lib/dolibarr/documents; + chmod -R 775 /var/lib/dolibarr/documents; + chmod -R g+s /var/lib/dolibarr/documents; + # Create empty conf.php if [ ! -f /usr/share/dolibarr/htdocs/conf/conf.php ] then