Skip to content

Commit

Permalink
fix(emqx-init): fix check functions return value
Browse files Browse the repository at this point in the history
  • Loading branch information
prehor committed Jul 7, 2024
1 parent 4327b6c commit 635e5af
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/emqx-init/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ wait_for_emqx() {
# Authentication
check_emqx_user() {
# TODO: check_emqx_user
return 0
echo "WARNING: check_emqx_user unimplemented!"
return 1 # 0 = found, 1 = not found
}
update_emqx_user() {
# TODO: update_emqx_user
echo "ERROR: update_emqx_user unimplemented!"
exit 1
}
create_emqx_user() {
Expand All @@ -59,7 +61,8 @@ check_emqx_rule() {
local INIT_EMQX_TOPIC_PERMISSION="$(echo "$1" | cut -d ':' -f 4)"

# TODO: check_emqx_rule
return 0
echo "WARNING: check_emqx_rule unimplemented!"
return 1 # 0 = found, 1 = not found
}
update_emqx_rule() {
local INIT_EMQX_TOPIC_USER="$(echo "$1" | cut -d ':' -f 1)"
Expand All @@ -68,6 +71,7 @@ update_emqx_rule() {
local INIT_EMQX_TOPIC_PERMISSION="$(echo "$1" | cut -d ':' -f 4)"

# TODO: update_emqx_rule
echo "ERROR: update_emqx_rule unimplemented!"
exit 1
}
create_emqx_rule() {
Expand Down

0 comments on commit 635e5af

Please sign in to comment.