From d98a79efceaa6d3e57f11f1374c57f836c28ee47 Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Fri, 1 Nov 2024 09:59:25 +0100 Subject: [PATCH] remove db_conf_path configuration --- recipe/inc/database.php | 4 ++++ recipe/setupTasks.php | 2 ++ 2 files changed, 6 insertions(+) diff --git a/recipe/inc/database.php b/recipe/inc/database.php index a81a6a9..29ca6cb 100644 --- a/recipe/inc/database.php +++ b/recipe/inc/database.php @@ -2,6 +2,10 @@ namespace Deployer; +set('db_conf_path', function () { + return '{{deploy_path}}/database/.my.cnf'; +}); + set('database_configured', function() { return has('db_name') && strlen(get('db_name')) && has('db_conf_path') && strlen(get('db_conf_path')) && test("[ -f {{db_conf_path}} ]"); diff --git a/recipe/setupTasks.php b/recipe/setupTasks.php index af5e5a9..cf3603e 100644 --- a/recipe/setupTasks.php +++ b/recipe/setupTasks.php @@ -2,6 +2,8 @@ namespace Deployer; +require_once 'inc/database.php'; + desc('create database coniguration file'); task('setup:createDbConfig', function () { try {