Skip to content

Run containers as hashr user to remove need for "sudo rm" #38

@ZetaTwo

Description

@ZetaTwo

Currently when cleaning up the temp files we use sudo:

cmd := exec.Command("sudo", "rm", "-rf", path)
I presume this is because some of the importers run a docker image (as root) which means the produced files are owned by root. If we run that container as the same user hashr is running as they will be owned by that user and we don't need to do "sudo rm ..." which could be dangerous if there is a bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions