File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments