mirror of
https://github.com/d0zingcat/ghost-docker.git
synced 2026-05-14 15:09:45 +00:00
- This helps clean up the TB setup since we no longer need to install the CLI tools locally - The service dependency chaining is a bit annoying here but it should all work - We have to change some of the mounts around because of how TB works and where it expects tokens to be
19 lines
473 B
Bash
Executable File
19 lines
473 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Check if .tinyb exists in current directory
|
|
if [[ ! -f "./.tinyb" ]]
|
|
then
|
|
# If not, try to copy from home directory
|
|
if [[ -f "/home/tinybird/.tinyb" ]]
|
|
then
|
|
cp /home/tinybird/.tinyb ./.tinyb
|
|
echo "Copied .tinyb auth file to current directory"
|
|
else
|
|
echo "No .tinyb auth file found, please run 'docker compose run --rm tinybird-login' first to login"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
# Run the tinybird command
|
|
tb "$@"
|