ports/databases/mariadb/patches/patch-scripts_wsrep_sst_mariabackup_sh

23 lines
506 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: scripts/wsrep_sst_mariabackup.sh
--- scripts/wsrep_sst_mariabackup.sh.orig
+++ scripts/wsrep_sst_mariabackup.sh
@@ -33,6 +33,18 @@ if [ -z "$BACKUP_BIN" ]; then
2023-08-16 22:26:55 +00:00
exit 42
fi
+GFIND_BIN=$(commandex 'gfind')
+if [ -z "$GFIND_BIN" ]; then
+ wsrep_log_error 'gfind binary not found in path'
+ exit 42
+fi
+
+GDU_BIN=$(commandex 'gdu')
+if [ -z "$GDU_BIN" ]; then
+ wsrep_log_error 'gdu binary not found in path'
+ exit 42
+fi
+
BACKUP_PID=""
2023-08-16 22:26:55 +00:00
INFO_FILE='mariadb_backup_galera_info'