* web/admin: fix error adding users to groups and vice versa Signed-off-by: Jens Langhammer <jens@goauthentik.io> * remove seed Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
		
			
				
	
	
		
			24 lines
		
	
	
		
			380 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			380 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package common
 | 
						|
 | 
						|
import (
 | 
						|
	"os"
 | 
						|
	"os/signal"
 | 
						|
	"syscall"
 | 
						|
	"time"
 | 
						|
 | 
						|
	"github.com/getsentry/sentry-go"
 | 
						|
)
 | 
						|
 | 
						|
func Init() chan os.Signal {
 | 
						|
	interrupt := make(chan os.Signal, 1)
 | 
						|
	signal.Notify(interrupt, os.Interrupt)
 | 
						|
	signal.Notify(interrupt, syscall.SIGINT)
 | 
						|
	signal.Notify(interrupt, syscall.SIGTERM)
 | 
						|
	return interrupt
 | 
						|
}
 | 
						|
 | 
						|
func Defer() {
 | 
						|
	sentry.Flush(time.Second * 5)
 | 
						|
	sentry.Recover()
 | 
						|
}
 |