Skip to content

Commit

Permalink
Add creation of dir for documents
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 20, 2011
1 parent 5c56829 commit ceccedc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion build/deb/postinst
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ceccedc

Please sign in to comment.