refactor!: change base data and config dir path
BREAKING CHANGE: `.ocis` dir isn't valid anymore, use init again.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user