Skip to content

Commit

Permalink
Go to home directory before running
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 995de28 commit a7a63d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/cloud_inits_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def show
"curl https://maintenance.auctionet.dev/running; true",

# The script relies on running sudo but we've disabled root which means it will bring up a prompt to set a password. Running su will run it as the default user that can sudo and also reload the /etc/environment variables.
"su username -c 'curl -s https://raw.githubusercontent.com/actions/runner/main/scripts/create-latest-svc.sh | bash -s #{App.github_actions_runner_scope}'",
"su username -c 'cd; 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",
Expand Down

0 comments on commit a7a63d1

Please sign in to comment.