OXID-Deployer/recipe/inc/database.php

24 Zeilen
587 B
PHP

2024-10-31 21:21:54 +01:00
<?php
namespace Deployer;
2024-11-01 09:59:25 +01:00
set('db_conf_path', function () {
return '{{deploy_path}}/database/.my.cnf';
});
2024-10-31 21:21:54 +01:00
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}} ]");
});
set('mysql_configured', function() {
return has('bin/mysql') && strlen(get('bin/mysql')) &&
get('database_configured');
});
set('mysqldump_configured', function() {
return has('bin/mysql') && strlen(get('bin/mysql')) &&
get('database_configured');
});