Giter VIP home page Giter VIP logo

Comments (5)

palli avatar palli commented on June 11, 2024

I suppose it can be done, although troubleshooting can be a little messy, for example because by default sudoers requires a tty to work.

Anyone who wants to take a swing at the problem gets kudos from me.

from okconfig.

digitalchild avatar digitalchild commented on June 11, 2024

I have gotten --sudo working on the command line. It does require NOPASSWD setup in sudoers file on the remote host but it works!

How do I contribute this back?

from okconfig.

palli avatar palli commented on June 11, 2024

If its a trivial change you can open edit it directly on github: https://github.com/opinkerfi/okconfig/blob/master/okconfig/__init__.py and send a pull request for review.

If the patch has any caveats (like requires nopasswd in the sudoers) it would be preferred that the install agent would handle the errors gracefully.

i.e. if sudo decides to ask for a password, we don't want to leave the user of okconfig install hanging with no idea whats going on.

from okconfig.

digitalchild avatar digitalchild commented on June 11, 2024

Ok,

I'm working on fixing the script to handle these errors as yes it currently hangs if the NOPASSWD is not defined.

Will contribute once I have worked this out.

from okconfig.

palli avatar palli commented on June 11, 2024

Thanks!

from okconfig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.