diff --git a/entrypoint.sh b/entrypoint.sh index b5a87a3..9a7bc3e 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 ./grafana-backuper backup --json + exec /app/grafana-backuper backup --json else - exec ./grafana-backuper --json + exec /app/grafana-backuper --json fi diff --git a/internal/cmd/backup.go b/internal/cmd/backup.go index dac2628..e147abd 100644 --- a/internal/cmd/backup.go +++ b/internal/cmd/backup.go @@ -10,7 +10,6 @@ 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 247f798..72ed201 100644 --- a/internal/cmd/restore.go +++ b/internal/cmd/restore.go @@ -10,7 +10,6 @@ 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",