feat(cmd): add sequence flag to execute multiple functions
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Tom Neuber 2024-12-07 00:52:25 +01:00
parent 30ee41171a
commit 579f2a5df7
Signed by: tom
GPG key ID: F17EFE4272D89FF6
5 changed files with 37 additions and 4 deletions

8
entrypoint.sh Normal file
View file

@ -0,0 +1,8 @@
#!/bin/bash
# Check if the environment variable GRAFANA_MODE is set
if [ -z "$GB_SEQUENCE" ]; then
exec ./grafana-backuper backup --json
else
exec ./grafana-backuper --json
fi