Skip to content

Commit c80d3dd

Browse files
committed
fix(fleetctl.sh): clean up unitfiles from the filesystem
Once we submit them to fleet, we don't need them anymore.
1 parent 96c95fd commit c80d3dd

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

controller/scheduler/fleetctl.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,9 @@ if [[ $FLEETW_UNIT ]]; then
1414
fi
1515

1616
# run the fleetctl command remotely
17-
ssh $SSH_OPTIONS core@$FLEETW_HOST fleetctl $@
17+
ssh $SSH_OPTIONS core@$FLEETW_HOST fleetctl $@
18+
19+
# clean up
20+
if [[ $FLEETW_UNIT ]]; then
21+
ssh $SSH_OPTIONS core@$FLEETW_HOST "rm -f /home/core/$FLEETW_UNIT"
22+
fi

0 commit comments

Comments
 (0)