From 77eece6f403a647ec70501d02ab2d806f76ccfdb Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Aug 2026 20:50:40 +0200 Subject: [PATCH] passwordpusher: dynamically read Ruby version from .ruby-version file (#16242) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --- ct/passwordpusher.sh | 1 + install/passwordpusher-install.sh | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ct/passwordpusher.sh b/ct/passwordpusher.sh index 777f4bbbb2d..31317177ddf 100644 --- a/ct/passwordpusher.sh +++ b/ct/passwordpusher.sh @@ -38,6 +38,7 @@ function update_script() { create_backup /opt/passwordpusher/storage /opt/passwordpusher/.env.production CLEAN_INSTALL=1 fetch_and_deploy_gh_release "passwordpusher" "pglombardo/PasswordPusher" "tarball" + RUBY_VERSION="$(cat /opt/passwordpusher/.ruby-version)" RUBY_INSTALL_RAILS="false" setup_ruby msg_info "Installing Gem Dependencies" cd /opt/passwordpusher diff --git a/install/passwordpusher-install.sh b/install/passwordpusher-install.sh index 86c775de4ae..d74904a3673 100644 --- a/install/passwordpusher-install.sh +++ b/install/passwordpusher-install.sh @@ -22,12 +22,13 @@ $STD apt install -y \ pkg-config msg_ok "Installed Dependencies" -RUBY_VERSION="4.0.5" RUBY_INSTALL_RAILS="false" setup_ruby NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs -export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH" fetch_and_deploy_gh_release "passwordpusher" "pglombardo/PasswordPusher" "tarball" +RUBY_VERSION="$(cat /opt/passwordpusher/.ruby-version)" RUBY_INSTALL_RAILS="false" setup_ruby +export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH" + msg_info "Installing Gem Dependencies" cd /opt/passwordpusher $STD bundle config set --local without 'development test'