update
This commit is contained in:
parent
c514c0cbb1
commit
2601deae8b
@ -1,13 +1,15 @@
|
||||
#!/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
|
||||
# Ensure the /share/smaf/documents directory exists
|
||||
mkdir -p /share/smaf/documents
|
||||
|
||||
# Remove the existing /var/www/documents directory if it exists
|
||||
if [ -d /var/www/documents ]; then
|
||||
rm -rf /var/www/documents
|
||||
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
|
||||
# Create a symbolic link from /var/www/documents to /share/smaf/documents
|
||||
ln -s /share/smaf/documents /var/www/documents
|
||||
|
||||
/usr/sbin/apachectl -D FOREGROUND
|
Loading…
x
Reference in New Issue
Block a user