Skip to content

Commit

Permalink
Fix Selfoss auth startup config
Browse files Browse the repository at this point in the history
  • Loading branch information
PhrozenByte committed Nov 29, 2023
1 parent 607df42 commit 9af0aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usr/lib/selfoss/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ if [ -n "$AUTH_USER" ] || [ -n "$AUTH_PASSWORD" ]; then
exit 1
fi

if [ -z "$AUTH_PASSWORD" ] || [[ ! "$AUTH_PASSWORD" =~ ^\$[0-9][a-z]?\$[0-9][0-9]?\$[.\/A-Za-z0-9]{53}$ ]]; then
if [ -z "$AUTH_PASSWORD" ] || [ -z "$(echo "$AUTH_PASSWORD" | grep -E '^\$[0-9][a-z]?\$[0-9][0-9]?\$[./A-Za-z0-9]{53}$')" ]; then
echo "Failed to setup Selfoss auth config: Invalid password provided ('selfoss_auth_password' secret)" >&2
exit 1
fi
Expand Down

0 comments on commit 9af0aa8

Please sign in to comment.