Skip to content

fix(scripts): store executable bit on pi scripts - #15

Merged
Awesome-Ace22 merged 2 commits into
devfrom
bugfix/script-exec-bit
Oct 24, 2026
Merged

Awesome-Ace22 merged 2 commits into
devfrom
bugfix/script-exec-bit

Conversation

@Awesome-Ace22

Copy link
Copy Markdown
Contributor

This pull request addresses issues with script executability after git checkouts, especially for older releases that did not store the executable bit on scripts. It introduces a helper function to restore executable permissions, updates deployment and build processes to use this helper, and ensures the systemd service works even if the executable bit is missing.

Script Executability Improvements:

  • Added a make_executable() helper function in nova-pi.sh to restore the executable bit on .sh scripts after git checkouts, addressing issues from older releases.
  • Replaced direct chmod calls with make_executable() in setup_units(), do_update(), and do_deploy() to consistently ensure scripts are executable in both production and development directories. [1] [2] [3]

Systemd Service Robustness:

  • Modified the ExecStart line in novaGround@.service to explicitly invoke start.sh via /bin/bash, so the service works even if start.sh is missing its executable bit.

Build Process User Ownership:

  • Improved error handling in do_build() to detect and report cases where the build directory contains files owned by another user, guiding the user to rebuild with sudo if necessary.

@Awesome-Ace22
Awesome-Ace22 requested a review from a team as a code owner October 24, 2026 17:35
@Awesome-Ace22 Awesome-Ace22 added bug Something isn't working hardware-risk Can move hardware: actuators, safety rules, interlocks, timeouts, sequencing labels Oct 24, 2026
@Awesome-Ace22 Awesome-Ace22 changed the title Bugfix/script exec bit fix(scripts): store executable bit on pi scripts Oct 24, 2026
@Awesome-Ace22
Awesome-Ace22 merged commit f12aeec into dev Oct 24, 2026
3 of 4 checks passed
@Awesome-Ace22
Awesome-Ace22 deleted the bugfix/script-exec-bit branch October 24, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working hardware-risk Can move hardware: actuators, safety rules, interlocks, timeouts, sequencing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant