question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support non-interactive `./config.sh remove`

See original GitHub issue

Describe the enhancement I use Terraform to (de)comission runners. I use a bash script on runner Virtual Machine in order to manage lifecyle. However, its seems the ./config.sh remove has no non-interactive capabilities.

Using ./config.sh remove "${token}" or ./config.sh remove <<<"${token}" always prompting for token.

Code Snippet N/A

Additional information It would also be nice for a runner to be able to unregister itself without requiring a Github Personal Acces Token or a registration token. I suppose API is out-of-scope of this repository ? Can you lead me to appropriate URL for this RFE. Thank you!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
ruvceskistefancommented, Apr 7, 2022

Hi @logan-mauzaize-saagie, Have you tried with this command: ./config.sh remove --token TOKEN_VALUE? That should work properly, so just let me know if everything went well.

0reactions
ruvceskistefancommented, Apr 7, 2022

You’re welcome @logan-mauzaize-saagie! I’ll consult with the rest of the team, so we’ll change the help message if everyone agrees.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enable non interactive configuration · Issue #221
Right now, the only way to solve the problem is to use expect . I'd post a sample configuration script here, but there...
Read more >
Can an interactive shell become non-interactive or vice ...
Running set +i in an interactive Bash shell causes 'i' to be removed from the contents of $- . The question is: Does...
Read more >
Linux rm non-interactive command
Unfortunately, I always get asked for EACH single file if I want to delete this because it is write-protected. Is there a way...
Read more >
Disable .zshenv output for non-interactive shell
I added: if [[ ! -o interactive ]]; then exec 1>&- exec 1<>/dev/null fi. at the top of my .zshenv file to close...
Read more >
DEBIAN_FRONTEND environment variable - apt
By running the install command with DEBIAN_FRONTEND=noninteractive these interactive xprompts are disabled. Share.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found