Skip to content

Commit

Permalink
chore: silence tr on secret generation
Browse files Browse the repository at this point in the history
  • Loading branch information
speed47 committed Feb 20, 2024
1 parent a458e4b commit ad9e14d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/admin/install
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,7 @@ if [ "${opt[generate-mfa-secret]}" = 1 ]; then
if [ -e "$BASTION_ETC_DIR/mfa-token.conf" ]; then
action_na
else
secret=$(tr -dc A-Za-z0-9 < /dev/urandom | head -c32)
secret=$(tr -dc A-Za-z0-9 < /dev/urandom 2>/dev/null | head -c32)
touch "$BASTION_ETC_DIR/mfa-token.conf"
chown 0:bastion-users "$BASTION_ETC_DIR/mfa-token.conf"
chmod 640 "$BASTION_ETC_DIR/mfa-token.conf"
Expand Down

0 comments on commit ad9e14d

Please sign in to comment.