Skip to content

Commit 2ee9663

Browse files
authored
Merge pull request #388 from coreruleset/fix/manual-mode
fix: manual mode default value check
2 parents 80c00f8 + f178465 commit 2ee9663

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ All these variables impact in configuration directives in the modsecurity engine
309309
| DETECTION_PARANOIA | (:new: Replaces `EXECUTING_PARANOIA` in CRSv4) An integer indicating the detection_paranoia_level (Default: `BLOCKING_PARANOIA`) |
310310
| ENFORCE_BODYPROC_URLENCODED | A boolean indicating the enforce_bodyproc_urlencoded (Default: `0`) |
311311
| EXECUTING_PARANOIA | An integer indicating the executing_paranoia_level (Default: `PARANOIA`) |
312-
| MANUAL_MODE | A boolean indicating that you are providing your own `crs-setup.conf` file mounted as volume. (Default: `0`). ⚠️ None of the following variables are used if you set it to `1`. |
312+
| MANUAL_MODE | A boolean indicating that you are providing your own `crs-setup.conf` file mounted as volume. (Default: `0` == automatic mode). ⚠️ None of the following variables are used if you set it to `1`. |
313313
| MAX_FILE_SIZE | An integer indicating the max_file_size (Default: `unlimited`) |
314314
| MAX_NUM_ARGS | An integer indicating the max_num_args (Default: `unlimited`) |
315315
| PARANOIA | An integer from `1` through `4`, indicating the paranoia level (Default: `1`) |

src/opt/modsecurity/activate-plugins.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
printf "# # #\nRunning CRS plugin activation\n- - -\n\n"
44

55
# Check if crs-setup.conf is overriden
6-
if [ -n "${MANUAL_MODE}" ]; then
6+
if [ "${MANUAL_MODE}" = "1" ]; then
77
echo "Using manual config mode"
88
return; # Don't use exit on a sourced script
99
fi

src/opt/modsecurity/configure-rules.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ printf "# # #\nRunning CRS rule configuration\n- - -\n"
1111
DIRECTORY="$(cd "$(dirname "$0")" && pwd)"
1212

1313
# Check if crs-setup.conf is overriden
14-
if [ -n "${MANUAL_MODE}" ]; then
14+
if [ "${MANUAL_MODE}" = "1" ]; then
1515
echo "Using manual config mode"
1616
# Don't use exit on a sourced script
1717
return

0 commit comments

Comments
 (0)