Skip to content

Commit

Permalink
Fix syntax issues
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Wall <[email protected]>
  • Loading branch information
joakimk and p-wall committed Dec 2, 2024
1 parent d0d66ee commit f198991
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions app/controllers/api/cloud_inits_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,19 @@ def show
write_files: [
{
path: "/etc/environment",
content: %{
RUNNER_CFG_PAT=#{App.github_actions_runner_cfg_pat}
},
content: "RUNNER_CFG_PAT=#{App.github_actions_runner_cfg_pat}",
append: true,
},
],
runcmd: [
"while read -r env; do export \"$env\"; done < /etc/environment",
"systemctl stop sshd",
"systemctl disable sshd",
"curl https://maintenance.auctionet.dev/running; true",
"curl -s https://raw.githubusercontent.com/actions/runner/main/scripts/create-latest-svc.sh | bash -s #{App.github_actions_runner_scope}",
"curl https://maintenance.auctionet.dev/it-ran; true",
"reboot",
],
runcmd: <<~BEGIN
while read -r env; do export "$env"; done < /etc/environment
systemctl stop sshd
systemctl disable sshd
curl https://maintenance.auctionet.dev/running; true
curl -s https://raw.githubusercontent.com/actions/runner/main/scripts/create-latest-svc.sh | bash -s #{App.github_actions_runner_scope}
curl https://maintenance.auctionet.dev/it-ran; true
reboot
BEGIN
}

yaml = "#cloud-config\n" +
Expand Down

0 comments on commit f198991

Please sign in to comment.