mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-02 15:25:27 +00:00
adjust check for local/ includes to "include if exists"
This commit is contained in:
@@ -42,7 +42,7 @@ local:
|
|||||||
for profile in ${TOPLEVEL_PROFILES}; do \
|
for profile in ${TOPLEVEL_PROFILES}; do \
|
||||||
fn=$$(basename $$profile); \
|
fn=$$(basename $$profile); \
|
||||||
echo "# Site-specific additions and overrides for '$$fn'" > ${PROFILES_SOURCE}/local/$$fn; \
|
echo "# Site-specific additions and overrides for '$$fn'" > ${PROFILES_SOURCE}/local/$$fn; \
|
||||||
grep "include[[:space:]]\\+<local/$$fn>" "$$profile" >/dev/null || { echo "$$profile doesn't contain #include <local/$$fn>" ; exit 1; } ; \
|
grep "include[[:space:]]\\+if[[:space:]]\\+exists[[:space:]]\\+<local/$$fn>" "$$profile" >/dev/null || { echo "$$profile doesn't contain include if exists <local/$$fn>" ; exit 1; } ; \
|
||||||
done; \
|
done; \
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
|
Reference in New Issue
Block a user