From 2dacd4f747d0c34306aa7049891fca809475fbab Mon Sep 17 00:00:00 2001 From: Paul Brinkmeier Date: Tue, 7 Oct 2025 16:48:53 +0200 Subject: [PATCH] Use /tmp for running dbmate --- flake.nix | 7 ++++--- yore.cabal | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index e970133..3499b16 100644 --- a/flake.nix +++ b/flake.nix @@ -76,12 +76,13 @@ text = '' set -Eeuo pipefail - mkdir -p /workspace/db - cp -r ${./db}/* /workspace/db - cd /workspace + mkdir -p /tmp/yore-workspace/db + cp -r ${./db}/* /tmp/yore-workspace/db + cd /tmp/yore-workspace/db dbmate up # Replace bash and inherit PID 1 + cd / exec yore ''; }; diff --git a/yore.cabal b/yore.cabal index b79d2bc..4a40658 100644 --- a/yore.cabal +++ b/yore.cabal @@ -1,7 +1,7 @@ cabal-version: 3.4 name: yore -version: 0.0.5 +version: 0.0.6 author: Paul Brinkmeier maintainer: hallo@pbrinkmeier.de copyright: 2023 Paul Brinkmeier