Skip to content

Commit

Permalink
Merge pull request #381 from lanedirt/372-installsh-reset-password-th…
Browse files Browse the repository at this point in the history
…rows-sed-notice-error

Fix bug in reset-password regex check
  • Loading branch information
lanedirt authored Nov 18, 2024
2 parents 63556d1 + 7c1aaab commit 64a76f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-compose-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ jobs:
- name: Test install.sh reset-password output
run: |
output=$(./install.sh reset-password)
if ! echo "$output" | grep -E '.*New admin password: [A-Za-z0-9]{8,}.*'; then
echo "Password reset output format is incorrect. Expected format: 'New admin password: <at least 8 chars>'"
if ! echo "$output" | grep -E '.*New admin password: [A-Za-z0-9+/=]{8,}.*'; then
echo "Password reset output format is incorrect. Expected format: 'New admin password: <at least 8 base64 chars>'"
echo "Actual output: $output"
exit 1
else
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-compose-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
- name: Test install.sh reset-password output
run: |
output=$(./install.sh reset-password)
if ! echo "$output" | grep -E '.*New admin password: [A-Za-z0-9]{8,}.*'; then
if ! echo "$output" | grep -E '.*New admin password: [A-Za-z0-9+/=]{8,}.*'; then
echo "Password reset output format is incorrect. Expected format: 'New admin password: <at least 8 base64 chars>'"
echo "Actual output: $output"
exit 1
Expand Down

0 comments on commit 64a76f3

Please sign in to comment.