OXID-Deployer/recipe/inc/database.php

22 lines
534 B
PHP
Raw Normal View History

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() {
2024-11-01 21:49:52 +01:00
return has('db_conf_path') && strlen(get('db_conf_path')) && test("[ -f {{db_conf_path}} ]");
2024-10-31 21:21:54 +01:00
});
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');
});