fix(wpcarro/nix): Restore cleanup code for deploy-diogenes

This was temporarily commented-out and never uncommented.

Change-Id: If770721aa10c65c5601b9f53a2d1810aef57b61d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5290
Tested-by: BuildkiteCI
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
This commit is contained in:
William Carroll 2022-02-14 14:22:55 -08:00 committed by clbot
parent 7ffcc25c1b
commit 9b267dbe99

View file

@ -21,10 +21,10 @@ in
${pkgs.terraform}/bin/terraform -chdir="$TF_STATE_DIR" init
fi
# function cleanup() {
# rm -f "$TF_STATE_DIR/$(basename $STORE_PATH)"
# }
# trap cleanup EXIT
function cleanup() {
rm -f "$TF_STATE_DIR/$(basename $STORE_PATH)"
}
trap cleanup EXIT
${pkgs.terraform}/bin/terraform -chdir="$TF_STATE_DIR" apply
'';