mirror of
https://github.com/flibusta-apps/telegram_files_server.git
synced 2025-12-06 20:45:37 +01:00
7 lines
265 B
Bash
Executable File
7 lines
265 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)'\''") | .[]')" |