[CI-SKIP] Store Pre-Claude Code
All checks were successful
Build (artifact) / build (push) Has been skipped
All checks were successful
Build (artifact) / build (push) Has been skipped
This commit is contained in:
@@ -10,6 +10,23 @@ import (
|
||||
"git.nevets.tech/Steven/certman/common"
|
||||
)
|
||||
|
||||
func WriteCommitHash(hash, dataRoot string) error {
|
||||
//TODO: unfuck this logic, maybe use a domain struct with a flag for non-standard data root?
|
||||
//var dataRoot string
|
||||
//if domainConfig.Certificates.DataRoot == "" {
|
||||
// dataRoot = filepath.Join(config.Certificates.DataRoot, "certificates", domainConfig.Domain.DomainName)
|
||||
//} else {
|
||||
// dataRoot = domainConfig.Certificates.DataRoot
|
||||
//}
|
||||
|
||||
err := os.WriteFile(filepath.Join(dataRoot, "hash"), []byte(hash), 0644)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func LocalCommitHash(domain string, certsDir string) (string, error) {
|
||||
data, err := os.ReadFile(filepath.Join(certsDir, "hash"))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user