add scripts for traceability
This commit is contained in:
parent
6edeed888d
commit
eb461a5442
|
@ -58,12 +58,14 @@ if $useEnv; then
|
||||||
usage "SOLANA_METRICS_CONFIG is not defined in the environment"
|
usage "SOLANA_METRICS_CONFIG is not defined in the environment"
|
||||||
else
|
else
|
||||||
username=$1
|
username=$1
|
||||||
|
echo "username innet/init-metrics is : $username"
|
||||||
[[ -n "$username" ]] || usage "username not specified"
|
[[ -n "$username" ]] || usage "username not specified"
|
||||||
|
|
||||||
read -rs -p "InfluxDB password for $username: " password
|
read -rs -p "InfluxDB password for $username: " password
|
||||||
[[ -n $password ]] || { echo "Password not specified"; exit 1; }
|
[[ -n $password ]] || { echo "Password not specified"; exit 1; }
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
echo "password is : $password"
|
||||||
password="$(urlencode "$password")"
|
password="$(urlencode "$password")"
|
||||||
|
|
||||||
if ! $createWithoutConfig; then
|
if ! $createWithoutConfig; then
|
||||||
|
@ -78,6 +80,9 @@ else
|
||||||
--data-urlencode "q=$*"
|
--data-urlencode "q=$*"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "username innet/init-metrics is : $username"
|
||||||
|
echo "password is : $password"
|
||||||
|
echo "netBasename is : $netBasename"
|
||||||
query "DROP DATABASE \"$netBasename\""
|
query "DROP DATABASE \"$netBasename\""
|
||||||
! $delete || exit 0
|
! $delete || exit 0
|
||||||
query "CREATE DATABASE \"$netBasename\""
|
query "CREATE DATABASE \"$netBasename\""
|
||||||
|
|
Loading…
Reference in New Issue