mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-15 22:04:03 +02:00
* Add detection sqlie wal for dashboard chown
* Lean it down a little
* Change to for loop with extensions
* Keep existing uid on files incase user is running as a unpriviledge user
* I have no idea 🤷
* Exclude dash.go and update windows
* Update
* Renam
* Remove the os check since we no longer get to this stage for those os's
---------
Co-authored-by: Manuel Sabban <github@sabban.eu>
22 lines
401 B
Go
22 lines
401 B
Go
//go:build !linux
|
|
|
|
package main
|
|
|
|
import (
|
|
"runtime"
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewDashboardCmd() *cobra.Command {
|
|
var cmdDashboard = &cobra.Command{
|
|
Use: "dashboard",
|
|
DisableAutoGenTag: true,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
log.Infof("Dashboard command is disabled on %s", runtime.GOOS)
|
|
},
|
|
}
|
|
|
|
return cmdDashboard
|
|
}
|