zlh-agent/internal/provision/addons/codeserver/install.go
2026-03-15 11:06:08 +00:00

24 lines
398 B
Go

package codeserver
import (
"fmt"
"path/filepath"
"zlh-agent/internal/provision/executil"
"zlh-agent/internal/state"
)
func Install(cfg state.Config) error {
scriptPath := filepath.Join(
executil.ScriptsRoot,
"addons",
"codeserver",
"install.sh",
)
if err := executil.RunScript(scriptPath); err != nil {
return fmt.Errorf("codeserver install failed: %w", err)
}
return nil
}