Change documents path
This commit is contained in:
		@@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user