Skip to content

Commit 31599f2

Browse files
committed
fix(vm): start agent after scenario steps
1 parent 59b5b1a commit 31599f2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

crates/intar-vm/src/cloud_init.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,6 @@ impl CloudInitGenerator {
119119
user_data.push_str("runcmd:\n");
120120
user_data.push_str(" - systemctl daemon-reload\n");
121121
user_data.push_str(" - grep -qxF /usr/local/bin/intar-shell /etc/shells || echo /usr/local/bin/intar-shell >> /etc/shells\n");
122-
user_data.push_str(" - systemctl enable intar-agent\n");
123-
user_data.push_str(" - systemctl start intar-agent\n");
124122
user_data.push_str(" - |\n");
125123
user_data.push_str(" if command -v systemctl >/dev/null 2>&1; then\n");
126124
user_data.push_str(" for unit in");
@@ -142,6 +140,9 @@ impl CloudInitGenerator {
142140
}
143141
}
144142

143+
user_data.push_str(" - systemctl enable intar-agent\n");
144+
user_data.push_str(" - systemctl start intar-agent\n");
145+
145146
user_data
146147
}
147148

0 commit comments

Comments
 (0)