Skip to content

Commit

Permalink
Allow RUBY_TARGET to be inherited from sudo (#513)
Browse files Browse the repository at this point in the history
Previously RUBY_TARGET was never passed along because `sudo -u` was
run. Add this variable to the sudoers file to preserve this varaible.
  • Loading branch information
stanhu authored Jan 31, 2025
1 parent 7b03755 commit c21f978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/setup/rb-sys-dock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

setup_sudoers() {
echo "Defaults env_keep += \"BUNDLE_PATH RB_SYS_CARGO_TARGET_DIR RAKEOPT\"" >> /etc/sudoers.d/rb-sys-dock
echo "Defaults env_keep += \"BUNDLE_PATH RB_SYS_CARGO_TARGET_DIR RAKEOPT RUBY_TARGET\"" >> /etc/sudoers.d/rb-sys-dock
}

main() {
Expand Down

0 comments on commit c21f978

Please sign in to comment.