File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ Description={{ .JobDescription }}
1313Type=notify
1414WorkingDirectory={{ .WorkingDirectory }}
1515ExecStart={{ .CommandLine }}
16- {{ if .Nice }}Nice={{ .Nice }}{{ end }}
16+ {{ if .Nice -}}
17+ Nice={{ .Nice }}
18+ {{ end -}}
19+ Environment="RESTICPROFILE_ON_SCHEDULE=1"
1720{{ range .Environment -}}
1821Environment="{{ . }}"
1922{{ end -}}
Original file line number Diff line number Diff line change 1- //+build !darwin,!windows
1+ //go:build !darwin && !windows
2+ // +build !darwin,!windows
23
34package systemd
45
@@ -29,6 +30,7 @@ Type=notify
2930WorkingDirectory={{ .WorkingDirectory }}
3031ExecStart={{ .CommandLine }}
3132{{ if .Nice }}Nice={{ .Nice }}{{ end }}
33+ Environment="RESTICPROFILE_ON_SCHEDULE=1"
3234{{ range .Environment -}}
3335Environment="{{ . }}"
3436{{ end -}}
Original file line number Diff line number Diff line change 1- //+build !darwin,!windows
1+ //go:build !darwin && !windows
2+ // +build !darwin,!windows
23
34package systemd
45
@@ -51,6 +52,7 @@ Type=notify
5152WorkingDirectory=workdir
5253ExecStart=commandLine
5354Nice=5
55+ Environment="RESTICPROFILE_ON_SCHEDULE=1"
5456Environment="HOME=%s"
5557`
5658 const expectedTimer = `[Unit]
You can’t perform that action at this time.
0 commit comments