Add creation of dir for documents
This commit is contained in:
parent
5c5682998c
commit
ceccedcac0
@ -29,7 +29,7 @@ case "$1" in
|
|||||||
# Copy include for apache.conf
|
# Copy include for apache.conf
|
||||||
fileorig="/usr/share/dolibarr/build/deb/apache.conf"
|
fileorig="/usr/share/dolibarr/build/deb/apache.conf"
|
||||||
config="/etc/dolibarr/apache.conf"
|
config="/etc/dolibarr/apache.conf"
|
||||||
mkdir -p /etc/dolibarr
|
mkdir -p /etc/dolibarr
|
||||||
cp -p $fileorig $config
|
cp -p $fileorig $config
|
||||||
|
|
||||||
# Create install.forced.php
|
# 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
|
cat $fileorig | sed -e 's/__SUPERUSERLOGIN__/'$superuserlogin'/g' | sed -e 's/__SUPERUSERPASSWORD__/'$superuserpassword'/g' > $config
|
||||||
fi
|
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
|
# Create empty conf.php
|
||||||
if [ ! -f /usr/share/dolibarr/htdocs/conf/conf.php ]
|
if [ ! -f /usr/share/dolibarr/htdocs/conf/conf.php ]
|
||||||
then
|
then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user