From 4ea6af716e2fdb64f71bdda778a84b7c90439ec3 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 28 Nov 2023 12:25:24 +0200 Subject: [PATCH] source bash --- templates/install_mastodon.sh.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/install_mastodon.sh.erb b/templates/install_mastodon.sh.erb index 772222b..49c705b 100644 --- a/templates/install_mastodon.sh.erb +++ b/templates/install_mastodon.sh.erb @@ -4,6 +4,7 @@ set -euo pipefail if [ ! -e '<%= @mastodon_home %>/.rbenv/versions/<%= @ruby_version %>/bin/ruby' ]; then cd '<%= @mastodon_home %>' echo "Installing ruby..." + source '<%= @mastodon_home %>/.bashrc' sudo -u <%= @mastodon_user %> RUBY_CONFIGURE_OPTS=--with-jemalloc '<%= @mastodon_home %>/.rbenv/bin/rbenv' install '<%= @ruby_version %>' sudo -u <%= @mastodon_user %> '<%= @mastodon_home %>/.rbenv/bin/rbenv' global '<%= @ruby_version %>' sudo -u <%= @mastodon_user %> '<%= @mastodon_home %>/.rbenv/versions/<%= @ruby_version %>/bin/gem' install bundler --no-document