Skip to content

Commit

Permalink
extend wait before configuring api key (#388)
Browse files Browse the repository at this point in the history
  • Loading branch information
pellepelster committed Jun 11, 2024
1 parent 7e61d94 commit 0100090
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/vernemq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,12 @@ if [ $start_join_cluster -eq 1 ]; then
mkdir -p /var/log/vernemq/log
join_cluster > /var/log/vernemq/log/join_cluster.log &
fi

if [ -n "$API_KEY" ]; then
sleep 10 && echo "Adding API_KEY..." && /vernemq/bin/vmq-admin api-key add key="${API_KEY:-DEFAULT}"
sleep 60
echo "Adding API_KEY..."
vmq-admin api-key add key="${API_KEY}"
vmq-admin api-key show
fi

wait $pid

0 comments on commit 0100090

Please sign in to comment.