From 3ad03731ed2073eeb33e0d205bef8239ae79a859 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Tue, 29 Oct 2024 08:45:54 +0100 Subject: [PATCH] create dbConf path if it doesn't exist --- deploy.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy.php b/deploy.php index d6ee382..6704156 100644 --- a/deploy.php +++ b/deploy.php @@ -72,7 +72,10 @@ task('setup:createDbConfig', function () { throw new \RuntimeException('missing db_conf_path option, task stopped'); } if (!test('[ -d $(dirname "{{db_conf_path}}") ]')) { - throw new \RuntimeException('configured path {{db_conf_path}} missing, task stopped'); + run('mkdir -p $(dirname "{{db_conf_path}}")'); + if (!test('[ -d $(dirname "{{db_conf_path}}") ]')) { + throw new \RuntimeException('unable to create configured path {{db_conf_path}}, task stopped'); + } } if (!test("[ -f {{db_conf_path}} ]")) { run("touch {{db_conf_path}}");