Skip to content

Commit

Permalink
document the -i param
Browse files Browse the repository at this point in the history
  • Loading branch information
robklg committed May 28, 2021
1 parent b4ee1a8 commit 2be6304
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/unftp-auth-jsonfile/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ publish: # Publishes the lib to crates.io

.PHONY: key-generator-image
key-generator-image: # Generate a Docker image for the unftp key generator script (files/run.sh)
docker build -f key-generator.Dockerfile -t bolcom/unftp-key-generator:latest -f key-generator.Dockerfile .
docker build -f key-generator.Dockerfile -t bolcom/unftp-key-generator:latest .

3 changes: 2 additions & 1 deletion crates/unftp-auth-jsonfile/files/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function generate_pbkdf2 {

function usage {
cat <<USAGE
Usage: $(basename $0) [-l length] [-m length] [-s yes|no] [-c yes|no] [-d yes|no] [-n] [-p]
Usage: $(basename $0) [-l length] [-m length] [-s yes|no] [-c yes|no] [-d yes|no] [-i iter] [-n] [-p] [-u] [-h]
Flags
-h Show this summary
Expand All @@ -103,6 +103,7 @@ Options
-s yes|no Require at least one symbol (default: yes)
-d yes|no Require at least one digit (default: yes)
-c yes|no Require mixed case (default: yes)
-i iterations The number of iterations for PBKDF2 (default: 500000)
USAGE
}

Expand Down
1 change: 0 additions & 1 deletion crates/unftp-auth-jsonfile/key-generator.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM alpine:latest

# run as user for security
RUN apk add bash openssl nettle-utils jq pwgen
COPY files/run.sh /

Expand Down

0 comments on commit 2be6304

Please sign in to comment.