create dbConf path if it doesn't exist
This commit is contained in:
parent
3fa7719465
commit
3ad03731ed
@ -72,7 +72,10 @@ task('setup:createDbConfig', function () {
|
|||||||
throw new \RuntimeException('missing db_conf_path option, task stopped');
|
throw new \RuntimeException('missing db_conf_path option, task stopped');
|
||||||
}
|
}
|
||||||
if (!test('[ -d $(dirname "{{db_conf_path}}") ]')) {
|
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}} ]")) {
|
if (!test("[ -f {{db_conf_path}} ]")) {
|
||||||
run("touch {{db_conf_path}}");
|
run("touch {{db_conf_path}}");
|
||||||
|
Loading…
Reference in New Issue
Block a user