Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve setup.sh distro and docker handling #549

Merged
merged 3 commits into from
Oct 17, 2018

Conversation

disconnect3d
Copy link
Member

This PR makes setup.sh:

  • add a fake sudo function that just executes given program without sudo if we are in a docker container without sudo. To be more specific in a cases when:

    • /.dockerenv file exists
    • sudo program doesn't exist
    • whoami returns root
  • adds a check for arch distro and tells the user to install community package

  • makes us fallback to checking for package manager if distro is not found: currently either apt or dnf

The latter should also fix #548

If the OS is not detected/supported, try checking for apt/dnf.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Cannot install on KDE neon
1 participant