Skip to content

Plugins are downloaded before detecting missing sudo privileges when using dist-install #5

Open

Description

@AdamTovatt

Running updaemon dist-install github without sudo starts downloading the plugin and then fails with a permission-denied error. It should check for required privileges first and exit immediately with a clear message instead of downloading before failing.

Look at this console output for example:

pi@raspberrypi:~ $ updaemon dist-install github
Downloading distribution plugin from: https://github.com/AdamTovatt/updaemon/releases/download/v0.5.1/Updaemon.GithubDistributionService
Downloaded 9023376 bytes
Error: Access to the path '/var/lib/updaemon/plugins/temp_d028c459093040f1a2357475c37d4ab7_Updaemon.GithubDistributionService' is denied.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions