mirror of
				https://github.com/1Panel-dev/1Panel.git
				synced 2025-10-31 19:26:02 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			332 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			332 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package run
 | |
| 
 | |
| import (
 | |
| 	"github.com/1Panel-dev/1Panel/core/app/dto"
 | |
| 	"github.com/1Panel-dev/1Panel/core/app/service"
 | |
| 	"github.com/1Panel-dev/1Panel/core/global"
 | |
| )
 | |
| 
 | |
| func Init() {
 | |
| 	if err := service.NewIScriptService().Sync(dto.OperateByTaskID{}); err != nil {
 | |
| 		global.LOG.Errorf("sync scripts from remote failed, err: %v", err)
 | |
| 	}
 | |
| }
 |