Add straggler script i added to docs but not here
This commit is contained in:
parent
62e8631833
commit
b04e9c17f9
1 changed files with 7 additions and 0 deletions
7
scripts/retain-custom-htaccess.sh
Executable file
7
scripts/retain-custom-htaccess.sh
Executable 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
|
Loading…
Reference in a new issue