diff --git a/entrypoint.sh b/entrypoint.sh index 9a7bc3e..b5a87a3 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,7 +2,7 @@ # Check if the environment variable GRAFANA_MODE is set if [ -z "$GB_SEQUENCE" ]; then - exec /app/grafana-backuper backup --json + exec ./grafana-backuper backup --json else - exec /app/grafana-backuper --json + exec ./grafana-backuper --json fi diff --git a/internal/cmd/backup.go b/internal/cmd/backup.go index e147abd..dac2628 100644 --- a/internal/cmd/backup.go +++ b/internal/cmd/backup.go @@ -10,6 +10,7 @@ import ( "github.com/spf13/cobra" ) +//nolint:dupl // This function may be the same as or similar to other cmd functions. func NewBackupCommand(c *config.Config) *cobra.Command { backupCmd := &cobra.Command{ Use: "backup", diff --git a/internal/cmd/restore.go b/internal/cmd/restore.go index 72ed201..247f798 100644 --- a/internal/cmd/restore.go +++ b/internal/cmd/restore.go @@ -10,6 +10,7 @@ import ( "github.com/spf13/cobra" ) +//nolint:dupl // This function may be the same as or similar to other cmd functions. func NewRestoreCommand(c *config.Config) *cobra.Command { restoreCmd := &cobra.Command{ Use: "restore",