Skip to content

Commit 77eece6

Browse files
authored
passwordpusher: dynamically read Ruby version from .ruby-version file (#16242)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 7b168d4 commit 77eece6

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

ct/passwordpusher.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ function update_script() {
3838
create_backup /opt/passwordpusher/storage /opt/passwordpusher/.env.production
3939

4040
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "passwordpusher" "pglombardo/PasswordPusher" "tarball"
41+
RUBY_VERSION="$(cat /opt/passwordpusher/.ruby-version)" RUBY_INSTALL_RAILS="false" setup_ruby
4142

4243
msg_info "Installing Gem Dependencies"
4344
cd /opt/passwordpusher

install/passwordpusher-install.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ $STD apt install -y \
2222
pkg-config
2323
msg_ok "Installed Dependencies"
2424

25-
RUBY_VERSION="4.0.5" RUBY_INSTALL_RAILS="false" setup_ruby
2625
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
27-
export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"
2826

2927
fetch_and_deploy_gh_release "passwordpusher" "pglombardo/PasswordPusher" "tarball"
3028

29+
RUBY_VERSION="$(cat /opt/passwordpusher/.ruby-version)" RUBY_INSTALL_RAILS="false" setup_ruby
30+
export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"
31+
3132
msg_info "Installing Gem Dependencies"
3233
cd /opt/passwordpusher
3334
$STD bundle config set --local without 'development test'

0 commit comments

Comments
 (0)