Skip to content

Warden svc up overwrites home directory traefik.yml customization #876

@hardyjohnson

Description

@hardyjohnson

Version of Warden

0.15.0

Operating System and Installation Method

Mac OS 15.5 via Brew

Describe the Bug

The warden svc up command will overwrite changes to home directory configuration of traefik.yml.

There is a missing file exists check which should be respected before creating the directory and the traefik.yml file itself.

    ## copy configuration files into location where they'll be mounted into containers from
    mkdir -p "${WARDEN_HOME_DIR}/etc/traefik"
    cp "${WARDEN_DIR}/config/traefik/traefik.yml" "${WARDEN_HOME_DIR}/etc/traefik/traefik.yml"

To Reproduce

  1. Edit your home directory ~/.warden/etc/traefik/traefik.yml.
  2. Restart warden svc and warden svc up
  3. cat your home traefik.yml file.
  4. See file was replaced with warden install directory config/traefik/traefik.yml.

Expected Behavior

Home directory traefik configurations should be resilient / persistent across service and env restarts.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions