Skip to content

Commit

Permalink
Examples for script usage (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunilgovind authored and GitHub Enterprise committed Dec 21, 2021
1 parent f82f964 commit ef26027
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,13 @@ run_log4j_patcher.sh automatically.
RUN_SCAN If non-empty, runs a final scan for missed vulnerable files. This can take several hours.
TMPDIR If non-empty, uses /tmp as the temporary directory. Set a different temporary directory using this.
```
Example : Run scan without patching jar, tar, and HDFS.
Example :
1. Run scan without patching jar, tar, and HDFS.
```
SKIP_JAR=1 SKIP_TGZ=1 SKIP_HDFS=1 RUN_SCAN=1 ./run_log4j_patcher.sh [cdp|cdh|hdp|hdf]
```
2. Run scan after patching jar, tar, and HDFS.
```
RUN_SCAN=1 ./run_log4j_patcher.sh [cdp|cdh|hdp|hdf]
```
HDP Notes : Currently the HDP removal scrips works on folder `/user/` on HDFS. Please modify/extent in The `hdp_log4j_jndi_removal.sh` around `line 41`.

0 comments on commit ef26027

Please sign in to comment.