Skip to content

Commit

Permalink
validate ADMIN_USERNAME
Browse files Browse the repository at this point in the history
  • Loading branch information
webdevred committed Dec 17, 2024
1 parent 15265e5 commit c200378
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jena-fuseki/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ if [ ! -f "$FUSEKI_BASE/shiro.ini" ] ; then
echo "Initializing Apache Jena Fuseki"
echo ""
cp "$FUSEKI_HOME/shiro.ini" "$FUSEKI_BASE/shiro.ini"
if [ -z "$ADMIN_USERNAME" ] ; then
if echo -n "$ADMIN_USERNAME" | grep -qE '=' ; then
echo "invalid ADMIN_USERNAME '$ADMIN_USERNAME', it can not contain ="
unset ADMIN_USERNAME
fi
if [ -z "$ADMIN_USERNAME" ]; then
export ADMIN_USERNAME=admin
fi
if [ -z "$ADMIN_PASSWORD" ] ; then
Expand Down

0 comments on commit c200378

Please sign in to comment.