container id fix

This commit is contained in:
shimon
2023-08-10 17:54:40 +03:00
parent 2cec0f5469
commit 0e9c61ac86
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -779,7 +779,7 @@ services:
- redis
environment:
- _APP_CONNECTIONS_DB_REPLICAS
- _APP_CONNECTIONS_BACKUPS_STORAGE
- _APP_CONNECTIONS_BACKUPS_STORAGE=dospaces://DO00ZZLVBLWLP6JJJVM2:aaEZ+eu8k80raNoDPlcwX8fwzSr3CzL5P+4UiwMnugw@default/cloud-fra1-stg-backups-1?region=fra1
appwrite-restore:
command: sleep infinity
+1 -2
View File
@@ -87,8 +87,7 @@ class Backup extends Action
sleep($sleep);
}
} while ($attempts < $max);
$containerId = shell_exec('docker ps -aqf "name=xtrabackup"');
$containerId = shell_exec('docker ps -aqf "name=xtrabackup" --format "{{.ID}}"');
$containerId = str_replace(PHP_EOL, '', $containerId);
if (empty($containerId)) {
Console::error('Xtrabackup Container ID not found');