refactor!: change base data and config dir path

BREAKING CHANGE: `.ocis` dir isn't valid anymore, use init again.
This commit is contained in:
Florian Schade
2025-01-15 15:07:57 +01:00
parent 2f3c7e3022
commit 4a45d7fca8
10 changed files with 952 additions and 13 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ func writeConfig(configPath, ocisAdminServicePassword, targetBackupConfig string
// writePatch writes the diff to a file
func writePatch(configPath string, yamlOutput []byte) error {
fmt.Println("running in diff mode")
tmpFile := path.Join(configPath, "ocis.yaml.tmp")
tmpFile := path.Join(configPath, "opencloud.yaml.tmp")
err := os.WriteFile(tmpFile, yamlOutput, 0600)
if err != nil {
return err
+3 -2
View File
@@ -6,12 +6,13 @@ import (
"path"
"github.com/gofrs/uuid"
"github.com/opencloud-eu/opencloud/pkg/generators"
"gopkg.in/yaml.v2"
"github.com/opencloud-eu/opencloud/pkg/generators"
)
const (
configFilename = "ocis.yaml"
configFilename = "opencloud.yaml"
passwordLength = 32
)