mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-04 04:24:31 +01:00
move ruby into msg block
This commit is contained in:
committed by
GitHub
parent
d795d2f709
commit
2f70cb0e2f
+1
-3
@@ -58,13 +58,11 @@ function update_script() {
|
||||
$STD git pull origin main
|
||||
msg_ok "Updated Discourse"
|
||||
|
||||
# Discourse ships no .ruby-version, the required Ruby is pinned in Gemfile.lock
|
||||
msg_info "Updating Dependencies"
|
||||
RUBY_TARGET=$(grep -A1 '^RUBY VERSION' /opt/discourse/Gemfile.lock | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -n1)
|
||||
RUBY_VERSION="${RUBY_TARGET:-4.0.7}" RUBY_INSTALL_RAILS="false" setup_ruby
|
||||
export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"
|
||||
hash -r
|
||||
|
||||
msg_info "Updating Dependencies"
|
||||
cd /opt/discourse
|
||||
$STD bundle install -j"$(nproc)"
|
||||
$STD pnpm install
|
||||
|
||||
Reference in New Issue
Block a user