Add script for retaining custom .htaccess from Drutopia build source

This commit is contained in:
benjamin melançon 2025-02-21 18:23:07 -05:00
parent 58c7589914
commit bbd97e2815

View file

@ -0,0 +1,7 @@
#!/bin/bash
if [ -f ./web/.htaccess.custom ]
then
cd web && mv .htaccess .htaccess.default && cp .htaccess.custom .htaccess
git diff -s --exit-code .htaccess.default || echo 'NOTE: .htaccess.default file has changed! Be sure to integrate latest updates into .htaccess and .htaccess.custom, then commit all three files. For example, meld web/.htaccess.custom web/.htaccess.default'
fi