Skip to content

Commit 550c698

Browse files
authored
Set HOME=/root for the task script (#313)
1 parent a282e00 commit 550c698

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

task/common/machine/script.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ sudo tee /etc/systemd/system/tpi-task.service > /dev/null <<END
4848
Type=simple
4949
ExecStart=/usr/bin/tpi-task
5050
ExecStopPost=/bin/bash -c 'systemctl is-system-running | grep stopping || tpi --stop'
51+
Environment=HOME=/root
5152
EnvironmentFile=/tmp/tpi-environment
5253
WorkingDirectory=/tmp/tpi-task
5354
TimeoutStartSec=%s

0 commit comments

Comments
 (0)