Skip to content

Commit 49954a5

Browse files
jessfrazbradfitz
authored andcommitted
cmd/makemac: add govc env vars to systemd service file
Fixes golang/go#20224 Change-Id: Iae7d70bdf0950541d774d12077552153ce1a15e0 Reviewed-on: https://go-review.googlesource.com/46332 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent b2bd0d6 commit 49954a5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/makemac/makemac.service

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ After=network.target
66
[Service]
77
User=gopher
88
Environment="PATH=/home/gopher/bin:/usr/local/bin:/usr/bin"
9+
# The following file decalres these variables: GOVC_URL GOVC_USERNAME GOVC_PASSWORD GOVC_INSECURE
10+
# A copy is located at http://go/go-builder-macstadiumd-env-file
11+
EnvironmentFile=/home/gopher/govc_env_file
912
ExecStart=/home/gopher/makemac -auto
1013

1114
[Install]

0 commit comments

Comments
 (0)