mirror of
https://github.com/flibusta-apps/telegram_files_server.git
synced 2025-12-06 04:25:38 +01:00
8 lines
266 B
Bash
Executable File
8 lines
266 B
Bash
Executable File
#! /usr/bin/env sh
|
|
|
|
response=`curl -X 'GET' "https://$VAULT_HOST/v1/$VAULT_SECRET_PATH" -s \
|
|
-H 'accept: application/json' \
|
|
-H "X-Vault-Token: $VAULT_TOKEN"`
|
|
|
|
echo "$(echo "$response" | jq -r '.data.data | to_entries | map("\(.key)='\''\(.value)'\''") | .[]')"
|