net: init-metrics.sh - urlencode influx password (#5594)

* net: init-metrics.sh - urlencode influx password

* old backticks bad!

* Move urlencode() to common.sh

* Make urlencode() vars local

Co-Authored-By: Michael Vines <mvines@gmail.com>
This commit is contained in:
Trent Nelson
2019-08-21 19:06:09 -06:00
committed by GitHub
parent faafee6b42
commit 5034331131
2 changed files with 20 additions and 0 deletions

View File

@ -60,6 +60,8 @@ else
[[ -n $password ]] || { echo "Password not specified"; exit 1; }
echo
password="$(urlencode "$password")"
query() {
echo "$*"
curl -XPOST \