Skip to content

uninstall in a non-current version directory stops the live stack and removes its volumes and shared stratum TLS keypair #2692

Description

@pithead-developer

What

In the versioned deploy layout (~/mining/pithead-vX.Y.Z plus a shared data/ root, see docs/operations.md), an upgrade copies .env into the new version directory, and the previous one keeps its own .env. The Compose project name is fixed (name: pithead in docker-compose.yml).

Running ./pithead uninstall in the kept previous version directory, for example to tidy it up, therefore acts on the live stack:

uninstall already keeps a version directory's own current symlink separate from any other version's. Nothing else does.

Expected

uninstall in a version directory that current does not point at refuses, or limits itself to that directory's own files, and says why. Leave the shared data root's proxy-tls alone unless this checkout is the one current names.

Found by review beside #2379; not fixed there.

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

    P1-user-facingUsers hit this now: leaks, breakage, wrong output. Taken first, across areasbugSomething isn't workingneeds-triageFiled by a worker or the inventory for something out of scope; the next inventory ranks it

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions