Skip to content

Commit 1da8537

Browse files
authored
Avoid rclone error message on task logs (#466)
1 parent cc01d09 commit 1da8537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

task/common/machine/script.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ sudo tee /etc/systemd/system/tpi-task.service > /dev/null <<END
6161
[Service]
6262
Type=simple
6363
ExecStart=/usr/bin/tpi-task
64-
ExecStop=/bin/bash -c 'systemctl is-system-running | grep stopping || echo "{\\\\"result\\\\": \\\\"\$SERVICE_RESULT\\\\", \\\\"code\\\\": \\\\"\$EXIT_STATUS\\\\", \\\\"status\\\\": \\\\"\$EXIT_CODE\\\\"}" > "$TPI_LOG_DIRECTORY/status-$TPI_MACHINE_IDENTITY" && rclone copy "$TPI_LOG_DIRECTORY" "\$RCLONE_REMOTE/reports"'
64+
ExecStop=/bin/bash -c 'systemctl is-system-running | grep stopping || echo "{\\\\"result\\\\": \\\\"\$SERVICE_RESULT\\\\", \\\\"code\\\\": \\\\"\$EXIT_STATUS\\\\", \\\\"status\\\\": \\\\"\$EXIT_CODE\\\\"}" > "$TPI_LOG_DIRECTORY/status-$TPI_MACHINE_IDENTITY" && RCLONE_CONFIG= rclone copy "$TPI_LOG_DIRECTORY" "\$RCLONE_REMOTE/reports"'
6565
ExecStopPost=/usr/bin/tpi-task-shutdown
6666
Environment=HOME=/root
6767
EnvironmentFile=/tmp/tpi-environment

0 commit comments

Comments
 (0)