[MDEV-12301] Use macro in scripts/galera_recovery.sh Created: 2017-03-19  Updated: 2019-07-12  Resolved: 2018-01-30

Status: Closed
Project: MariaDB Server
Component/s: Galera, Server
Affects Version/s: 10.1.22
Fix Version/s: 10.1.31

Type: Bug Priority: Critical
Reporter: Michal Schorm Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: contribution, patch

Issue Links:
Duplicate
is duplicated by MDEV-15259 Use macro for mysqld location Closed
Relates
relates to MDEV-20053 galera_recovery: Wrong @sbindir@ Open
Sprint: 10.1.31

 Description   

Hello,
please, use macro instead of hardcoded path, if it is not inevitable.

@@ -0,0 +1,11 @@
+--- mariadb-10.1.22/scripts/galera_recovery.sh	2017-03-17 15:34:21.069733823 +0100
++++ mariadb-10.1.22/scripts/galera_recovery.sh_patched	2017-03-17 15:34:03.032133966 +0100
+@@ -68,7 +68,7 @@ parse_arguments() {
+ 
+ wsrep_recover_position() {
+   # Redirect server's error log to the log file.
+-  eval /usr/sbin/mysqld $cmdline_args --user=$user --wsrep_recover \
++  eval @sbindir@/mysqld $cmdline_args --user=$user --wsrep_recover \
+     --log-error="$log_file"
+   ret=$?
+   if [ $ret -ne 0 ]; then


Generated at Thu Feb 08 07:56:39 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.