Change documents path

This commit is contained in:
ai-dev 2024-09-02 23:09:44 +02:00
parent 2c6d53b418
commit c514c0cbb1
2 changed files with 11 additions and 2 deletions

View File

@ -7,8 +7,7 @@ arch:
- amd64
url: https://dolibar.fr
map:
- config:rw
- backup:rw
- share:rw
image: docker.io/tuxgasy/dolibarr
init: false
ingress: true

View File

@ -1,3 +1,13 @@
#!/usr/bin/execlineb -P
with-contenv
# Change the document root path in the Dolibarr configuration files
if [ -f /var/www/htdocs/conf/conf.php ]; then
sed -i "s|/var/www/documents|/share/smaf/documents|g" /var/www/htdocs/conf/conf.php
fi
if [ -f /var/www/html/conf/conf.php ]; then
sed -i "s|/var/www/documents|/share/smaf/documents|g" /var/www/html/conf/conf.php
fi
/usr/sbin/apachectl -D FOREGROUND