Giter Club home page Giter Club logo

Comments (11)

alexellis avatar alexellis commented on July 29, 2024 1

@martindekov ☝️

Thanks @Hades32

from k3sup.

alexellis avatar alexellis commented on July 29, 2024

You will need to say which command fails. What exactly are you running to get an error?

from k3sup.

martindekov avatar martindekov commented on July 29, 2024

getConfigcommand := fmt.Sprintf("sudo cat /etc/rancher/k3s/k3s.yaml\n")

I fixed it for myself(removed sudo), but in case someone stumbles upon it I think it can be fixed in some way.

from k3sup.

alexellis avatar alexellis commented on July 29, 2024

OK that helps a lot, because it sounded like you were struggling with the bash script, to which I would have said, customise what you type in.

How are we going to succinctly execute commands on a remote VM which doesn't have sudo? Let me know what ideas you have.

from k3sup.

martindekov avatar martindekov commented on July 29, 2024

If we are logged in as the super user account I think we would be executing commands as if we were using sudo.

If that is the case, then we can add flag to commands which use sudo binary like --root, pointing that the account is the superuser account.

from k3sup.

alexellis avatar alexellis commented on July 29, 2024

Do you use --user root?

from k3sup.

alexellis avatar alexellis commented on July 29, 2024

What if we added --sudo=false for your scenario?

from k3sup.

Hades32 avatar Hades32 commented on July 29, 2024

In my scenario the Ubuntu doesn't have sudo installed, so either apt-get'ing it or as you suggest --sudo=false would solve that case.

from k3sup.

alexellis avatar alexellis commented on July 29, 2024

Happy to accept a PR for this.

from k3sup.

alexellis avatar alexellis commented on July 29, 2024

https://github.com/alexellis/k3sup/releases/tag/0.5.2

from k3sup.

martindekov avatar martindekov commented on July 29, 2024

Thank you @Hades32 👍

from k3sup.

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.