fix(shared-ols): watcher reloads for .htaccess in the real vhost docRoot
The watcher only matched */public_html/.htaccess, so sites with a document-root folder (docRoot public_html/<sub>) never triggered a reload. Match .htaccess directly inside any docRoot taken from the rendered $SITES_ROOT/*/vhconf.conf (set refreshed only when httpd_config.conf changes); legacy match kept as fallback when the set is empty. Deep plugin .htaccess files still do not trigger. Adds a stubbed-lswsctrl test and CI wiring. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
1 parent
9ce8b9a595
commit
427246b886
3 files changed
+145
-11
No files matched your search
@@ -71,6 +71,7 @@ jobs:
|
||||
scripts/lsphp-apt-upgrade.sh \
|
||||
scripts/lsphp-pin-resolve.sh \
|
||||
scripts/tests/lsphp-pin-resolve.test.sh \
|
||||
scripts/tests/ols-htaccess-watcher.test.sh \
|
||||
scripts/lsphp-src-build.sh \
|
||||
scripts/lsphp-src-overlay.sh \
|
||||
scripts/lsphp-abi-gate.sh \
|
||||
@@ -97,6 +98,11 @@ jobs:
|
||||
- name: lsphp pin-resolve fixture test
|
||||
run: ./scripts/tests/lsphp-pin-resolve.test.sh
|
||||
|
||||
- name: ols htaccess watcher test (needs inotify-tools; skips if absent)
|
||||
run: |
|
||||
(apt-get install -y inotify-tools || sudo apt-get install -y inotify-tools) >/dev/null 2>&1 || true
|
||||
./scripts/tests/ols-htaccess-watcher.test.sh
|
||||
|
||||
- name: lsphp repo-version lookup test
|
||||
run: ./scripts/tests/lsphp-repo-version.test.sh
|
||||
|
||||
|
||||
Reference in new issue
Block a user