basforge

Search titles, text and the “If it doesn’t work” cases.

    RU

    Dependent steps go on one line with &&

    If step B breaks a service without step A, run them in one line with &&, in the right order. Then the second step won’t start if the first one failed.

    An example

    cd /opt && rm traefik/data/dynamic/crowdsec.yml && git pull && cd /opt/traefik && docker compose up -d

    Remove the old crowdsec.yml so git pull can put the new one in its place, then recreate Traefik right away with the new config and secret. If any step fails, the next ones don’t start. Keep a copy of the old file until you’ve checked (Server configs in git).

    Where order matters