diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2021-12-23 12:14:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-23 12:14:24 +0300 |
commit | f2c604eedb05e3486f2feaf715fe00e191c0cf2f (patch) | |
tree | 11c7f3087391712b413e27c39fdd77f3e1096768 /claim | |
parent | fcdac8f5d0c5edd156ebd4c15d7cd2c7abee62ff (diff) |
fix(claim): set URL_BASE only if `-url` parameter value is not null (#11919)
Diffstat (limited to 'claim')
-rwxr-xr-x | claim/netdata-claim.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/claim/netdata-claim.sh.in b/claim/netdata-claim.sh.in index 18813a6bab..8f58cfe3b2 100755 --- a/claim/netdata-claim.sh.in +++ b/claim/netdata-claim.sh.in @@ -191,7 +191,7 @@ for arg in "$@" do case $arg in -token=*) TOKEN=${arg:7} ;; - -url=*) URL_BASE=${arg:5} ;; + -url=*) [ -n "${arg:5}" ] && URL_BASE=${arg:5} ;; -id=*) ID=${arg:4} ;; -rooms=*) ROOMS=${arg:7} ;; -hostname=*) HOSTNAME=${arg:10} ;; |