File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,11 @@ ready to run on your desktop or in a cluster.
100
100
101
101
We also provide a [ docker image] ( https://hub.docker.com/r/bpineau/katafygio/ ) .
102
102
103
+ On MacOs, you can use the brew formula:
104
+ ``` bash
105
+ brew install bpineau/tap/katafygio
106
+ ```
107
+
103
108
You can also deploy with the provided [ helm] ( https://helm.sh/ ) chart:
104
109
``` shell
105
110
helm install --name kf-backups --namespace kube-system assets/helm-chart/katafygio/
Original file line number Diff line number Diff line change 5
5
"fmt"
6
6
"os"
7
7
"os/exec"
8
+ "path/filepath"
8
9
"time"
9
10
10
11
"github.com/spf13/afero"
@@ -145,6 +146,11 @@ func (s *Store) Status() (changed bool, err error) {
145
146
// CloneOrInit create a new local repository, either with "git clone" (if a GitURL
146
147
// to clone from is provided), or "git init" (in the absence of GitURL).
147
148
func (s * Store ) CloneOrInit () (err error ) {
149
+ s .LocalDir , err = filepath .Abs (s .LocalDir )
150
+ if err != nil {
151
+ return fmt .Errorf ("can't find local dir absolute path (broken cwd?): %v" , err )
152
+ }
153
+
148
154
if ! s .DryRun {
149
155
err = appFs .MkdirAll (s .LocalDir , 0700 )
150
156
if err != nil {
You can’t perform that action at this time.
0 commit comments