Skip to content

Commit

Permalink
Correct create user script
Browse files Browse the repository at this point in the history
  • Loading branch information
JornC committed Jul 10, 2023
1 parent a73ace8 commit bd0dcb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/misc/create-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ htpasswd -Bbn "$USERNAME" "$PLAIN_PASSWORD" > "$TEMP_FILE"

# Extract just the hash from the output
# Cut -d: -f2 removes the username and colon at the start, and rev | cut -c4- | rev removes the last three characters
BCRYPT_HASH=$(cut -d: -f2 "$TEMP_FILE" | rev | cut -c4- | rev)
BCRYPT_HASH=$(cut -d: -f2 "$TEMP_FILE")

# Clean up the temporary file
rm "$TEMP_FILE"
Expand Down

0 comments on commit bd0dcb1

Please sign in to comment.