Change documents path
This commit is contained in:
parent
2c6d53b418
commit
c514c0cbb1
@ -7,8 +7,7 @@ arch:
|
|||||||
- amd64
|
- amd64
|
||||||
url: https://dolibar.fr
|
url: https://dolibar.fr
|
||||||
map:
|
map:
|
||||||
- config:rw
|
- share:rw
|
||||||
- backup:rw
|
|
||||||
image: docker.io/tuxgasy/dolibarr
|
image: docker.io/tuxgasy/dolibarr
|
||||||
init: false
|
init: false
|
||||||
ingress: true
|
ingress: true
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
#!/usr/bin/execlineb -P
|
#!/usr/bin/execlineb -P
|
||||||
with-contenv
|
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
|
/usr/sbin/apachectl -D FOREGROUND
|
Loading…
x
Reference in New Issue
Block a user