Skip to content

Commit b0a80cd

Browse files
committed
added shutdown step
1 parent 82713c9 commit b0a80cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/starter.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ LOGFILE="/var/log/rlft_setup.log"
1919
BUILD_LOGFILE="/var/log/docker_build.log"
2020
RUN_LOGFILE="/var/log/docker_run.log"
2121

22+
# Step x: Shutdown VM instance
23+
trap 'echo "Shutting down VM..."; sudo shutdown now' EXIT
24+
2225
# Step 0: Redirect all logs
2326
exec > >(sudo tee -a "$LOGFILE") 2>&1
2427
echo "===== Starting RLFT setup at $(date) ====="

0 commit comments

Comments
 (0)