mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-21 11:55:53 +02:00
passwordpusher: dynamically read Ruby version from .ruby-version file (#16242)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -38,6 +38,7 @@ function update_script() {
|
|||||||
create_backup /opt/passwordpusher/storage /opt/passwordpusher/.env.production
|
create_backup /opt/passwordpusher/storage /opt/passwordpusher/.env.production
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "passwordpusher" "pglombardo/PasswordPusher" "tarball"
|
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"
|
msg_info "Installing Gem Dependencies"
|
||||||
cd /opt/passwordpusher
|
cd /opt/passwordpusher
|
||||||
|
|||||||
@@ -22,12 +22,13 @@ $STD apt install -y \
|
|||||||
pkg-config
|
pkg-config
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
RUBY_VERSION="4.0.5" RUBY_INSTALL_RAILS="false" setup_ruby
|
|
||||||
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
|
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"
|
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"
|
msg_info "Installing Gem Dependencies"
|
||||||
cd /opt/passwordpusher
|
cd /opt/passwordpusher
|
||||||
$STD bundle config set --local without 'development test'
|
$STD bundle config set --local without 'development test'
|
||||||
|
|||||||
Reference in New Issue
Block a user