From b04e9c17f93ad05fcd9d95530b8c43a0e658fff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Thu, 19 Oct 2023 13:21:02 -0400 Subject: [PATCH] Add straggler script i added to docs but not here --- scripts/retain-custom-htaccess.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 scripts/retain-custom-htaccess.sh diff --git a/scripts/retain-custom-htaccess.sh b/scripts/retain-custom-htaccess.sh new file mode 100755 index 0000000..41dd644 --- /dev/null +++ b/scripts/retain-custom-htaccess.sh @@ -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