mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
container id fix
This commit is contained in:
@@ -88,7 +88,9 @@ class Backup extends Action
|
||||
}
|
||||
} while ($attempts < $max);
|
||||
$containerId = shell_exec('docker ps -aqf "name=xtrabackup" --format "{{.ID}}"');
|
||||
var_dump("$containerId=".$containerId);
|
||||
$containerId = str_replace(PHP_EOL, '', $containerId);
|
||||
var_dump("$containerId=".$containerId);
|
||||
if (empty($containerId)) {
|
||||
Console::error('Xtrabackup Container ID not found');
|
||||
Console::exit();
|
||||
|
||||
Reference in New Issue
Block a user