Skip to content

Commit 4160c9a

Browse files
committed
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: #1445
1 parent 82bc99c commit 4160c9a

File tree

7 files changed

+7
-3
lines changed

7 files changed

+7
-3
lines changed

src/bin/gpfts/failover/docker_master_check_back.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env bash
12

23
if !type gpssh >/dev/null 2>&1; then
34
echo "[FATAL]:- gpssh not exist, script Exits!"

src/bin/gpfts/failover/docker_segment_check_back.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
#!/usr/bin/env bash
22

33
if !type gpssh >/dev/null 2>&1; then
44
echo "[FATAL]:- gpssh not exist, script Exits!"

src/bin/gpfts/failover/docker_standby_check_back.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
#!/usr/bin/env bash
22

33
if !type gpssh >/dev/null 2>&1; then
44
echo "[FATAL]:- gpssh not exist, script Exits!"

src/bin/gpfts/failover/master_check_back.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env bash
12

23
if !type gpssh >/dev/null 2>&1; then
34
echo "[FATAL]:- gpssh not exist, script Exits!"

src/bin/gpfts/failover/segment_all_down.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env bash
12

23
if !type pg_ctl >/dev/null 2>&1; then
34
echo "[FATAL]:- pg_ctl not exist, script Exits!"

src/bin/gpfts/failover/segment_check_back.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env bash
12

23
if !type gprecoverseg >/dev/null 2>&1; then
34
echo "[FATAL]:- gprecoverseg not exist, script Exits!"

src/bin/gpfts/failover/standby_check_back.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
#!/usr/bin/env bash
22

33
if !type gpssh >/dev/null 2>&1; then
44
echo "[FATAL]:- gpssh not exist, script Exits!"

0 commit comments

Comments
 (0)