Skip to content

Conversation

@tuhaihe
Copy link
Member

@tuhaihe tuhaihe commented Dec 12, 2025

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

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


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: apache#1445
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants