Change documents path
This commit is contained in:
parent
2c6d53b418
commit
c514c0cbb1
@ -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
|
||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user