This is an automated email from the ASF dual-hosted git repository.

djwang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/main by this push:
     new e905e580ff5 Fix missing shebang in failover shell scripts
e905e580ff5 is described below

commit e905e580ff568ce8d3ae315fc500cf04d268b2d8
Author: Dianjin Wang <[email protected]>
AuthorDate: Fri Dec 12 16:15:05 2025 +0800

    Fix missing shebang in failover shell scripts
    
    Add shebang line to failover scripts to fix RPM build warnings.
    
    During RPM package build, rpmbuild reports warnings about executable
    files without shebang lines. This causes the build process to remove
    the executable bit from these scripts.
    
    The following scripts are fixed:
    - master_check_back.sh
    - standby_check_back.sh
    - segment_check_back.sh
    - segment_all_down.sh
    - docker_master_check_back.sh
    - docker_standby_check_back.sh
    - docker_segment_check_back.sh
    
    Use "#!/usr/bin/env bash" for better cross-platform compatibility.
    
    See: https://github.com/apache/cloudberry/issues/1445
---
 src/bin/gpfts/failover/docker_master_check_back.sh  | 1 +
 src/bin/gpfts/failover/docker_segment_check_back.sh | 2 +-
 src/bin/gpfts/failover/docker_standby_check_back.sh | 2 +-
 src/bin/gpfts/failover/master_check_back.sh         | 1 +
 src/bin/gpfts/failover/segment_all_down.sh          | 1 +
 src/bin/gpfts/failover/segment_check_back.sh        | 1 +
 src/bin/gpfts/failover/standby_check_back.sh        | 2 +-
 7 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/bin/gpfts/failover/docker_master_check_back.sh 
b/src/bin/gpfts/failover/docker_master_check_back.sh
index 9b1ab8806f7..0db97596ac5 100755
--- a/src/bin/gpfts/failover/docker_master_check_back.sh
+++ b/src/bin/gpfts/failover/docker_master_check_back.sh
@@ -1,3 +1,4 @@
+#!/usr/bin/env bash
 
 if !type gpssh >/dev/null 2>&1; then 
     echo "[FATAL]:- gpssh not exist, script Exits!"
diff --git a/src/bin/gpfts/failover/docker_segment_check_back.sh 
b/src/bin/gpfts/failover/docker_segment_check_back.sh
index 2776415b40e..94bb4b3c4da 100755
--- a/src/bin/gpfts/failover/docker_segment_check_back.sh
+++ b/src/bin/gpfts/failover/docker_segment_check_back.sh
@@ -1,4 +1,4 @@
-
+#!/usr/bin/env bash
 
 if !type gpssh >/dev/null 2>&1; then 
     echo "[FATAL]:- gpssh not exist, script Exits!"
diff --git a/src/bin/gpfts/failover/docker_standby_check_back.sh 
b/src/bin/gpfts/failover/docker_standby_check_back.sh
index 81abd790efb..fe2dce7bca3 100755
--- a/src/bin/gpfts/failover/docker_standby_check_back.sh
+++ b/src/bin/gpfts/failover/docker_standby_check_back.sh
@@ -1,4 +1,4 @@
-
+#!/usr/bin/env bash
 
 if !type gpssh >/dev/null 2>&1; then 
     echo "[FATAL]:- gpssh not exist, script Exits!"
diff --git a/src/bin/gpfts/failover/master_check_back.sh 
b/src/bin/gpfts/failover/master_check_back.sh
index 9b1ab8806f7..0db97596ac5 100755
--- a/src/bin/gpfts/failover/master_check_back.sh
+++ b/src/bin/gpfts/failover/master_check_back.sh
@@ -1,3 +1,4 @@
+#!/usr/bin/env bash
 
 if !type gpssh >/dev/null 2>&1; then 
     echo "[FATAL]:- gpssh not exist, script Exits!"
diff --git a/src/bin/gpfts/failover/segment_all_down.sh 
b/src/bin/gpfts/failover/segment_all_down.sh
index 954801b923b..1121f54fbbc 100755
--- a/src/bin/gpfts/failover/segment_all_down.sh
+++ b/src/bin/gpfts/failover/segment_all_down.sh
@@ -1,3 +1,4 @@
+#!/usr/bin/env bash
 
 if !type pg_ctl >/dev/null 2>&1; then 
     echo "[FATAL]:- pg_ctl not exist, script Exits!"
diff --git a/src/bin/gpfts/failover/segment_check_back.sh 
b/src/bin/gpfts/failover/segment_check_back.sh
index 91f57d69107..ec55ab64982 100755
--- a/src/bin/gpfts/failover/segment_check_back.sh
+++ b/src/bin/gpfts/failover/segment_check_back.sh
@@ -1,3 +1,4 @@
+#!/usr/bin/env bash
 
 if !type gprecoverseg >/dev/null 2>&1; then 
     echo "[FATAL]:- gprecoverseg not exist, script Exits!"
diff --git a/src/bin/gpfts/failover/standby_check_back.sh 
b/src/bin/gpfts/failover/standby_check_back.sh
index 81abd790efb..fe2dce7bca3 100755
--- a/src/bin/gpfts/failover/standby_check_back.sh
+++ b/src/bin/gpfts/failover/standby_check_back.sh
@@ -1,4 +1,4 @@
-
+#!/usr/bin/env bash
 
 if !type gpssh >/dev/null 2>&1; then 
     echo "[FATAL]:- gpssh not exist, script Exits!"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to