File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ Description={{ .JobDescription }}
13
13
Type=notify
14
14
WorkingDirectory={{ .WorkingDirectory }}
15
15
ExecStart={{ .CommandLine }}
16
- {{ if .Nice }}Nice={{ .Nice }}{{ end }}
16
+ {{ if .Nice -}}
17
+ Nice={{ .Nice }}
18
+ {{ end -}}
19
+ Environment="RESTICPROFILE_ON_SCHEDULE=1"
17
20
{{ range .Environment -}}
18
21
Environment="{{ . }}"
19
22
{{ end -}}
Original file line number Diff line number Diff line change 1
- //+build !darwin,!windows
1
+ //go:build !darwin && !windows
2
+ // +build !darwin,!windows
2
3
3
4
package systemd
4
5
@@ -29,6 +30,7 @@ Type=notify
29
30
WorkingDirectory={{ .WorkingDirectory }}
30
31
ExecStart={{ .CommandLine }}
31
32
{{ if .Nice }}Nice={{ .Nice }}{{ end }}
33
+ Environment="RESTICPROFILE_ON_SCHEDULE=1"
32
34
{{ range .Environment -}}
33
35
Environment="{{ . }}"
34
36
{{ end -}}
Original file line number Diff line number Diff line change 1
- //+build !darwin,!windows
1
+ //go:build !darwin && !windows
2
+ // +build !darwin,!windows
2
3
3
4
package systemd
4
5
@@ -51,6 +52,7 @@ Type=notify
51
52
WorkingDirectory=workdir
52
53
ExecStart=commandLine
53
54
Nice=5
55
+ Environment="RESTICPROFILE_ON_SCHEDULE=1"
54
56
Environment="HOME=%s"
55
57
`
56
58
const expectedTimer = `[Unit]
You can’t perform that action at this time.
0 commit comments