8000 Idea so macOS installer does not need sudo · Issue #164 · elm-lang/elm-platform · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 23, 2018. It is now read-only.
This repository was archived by the owner on Aug 23, 2018. It is now read-only.
Idea so macOS installer does not need sudo #164
Open
@altaic

Description

@altaic

Problem

Many users of the homebrew package manager set the permissions of /usr/local and such so sudo is not required. However, the Elm-Platform installer, e.g. Elm-Platform-0.17.1.pkg, requires the user to type in their password for administrative access regardless if it already has permission or not. I don't think this is a good security policy.

Solution

The installer checks if it has permission to the necessary subdirectories of /usr/local. If it does, install without elevating privileges. If it doesn't, prompt user for administrative access, elevate privileges, and install as root.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0