mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-09-14 10:36:30 +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)
|
|
}
|
|
}
|