This commit is contained in:
Antonio J. Delgado 2023-11-28 15:16:03 +02:00
parent 33f8e560c1
commit 26019c0dac

View file

@ -6,7 +6,7 @@ if [ ! -e '<%= @mastodon_home %>/.mastodon_install' ]; then
echo "Installing ruby..."
export PATH="<%= @mastodon_home %>/.rbenv/bin:$PATH"
eval "$(<%= @mastodon_home %>/.rbenv/bin/rbenv init -)"
if [ ! -e '<%= @mastodon_home %>/.rbenv/version/<%= @ruby_version %>/bin/ruby' ]; then
if [ ! -e '<%= @mastodon_home %>/.rbenv/versions/<%= @ruby_version %>/bin/ruby' ]; then
sudo -u <%= @mastodon_user %> RUBY_CONFIGURE_OPTS=--with-jemalloc '<%= @mastodon_home %>/.rbenv/bin/rbenv' install '<%= @ruby_version %>'
fi
sudo -u <%= @mastodon_user %> '<%= @mastodon_home %>/.rbenv/bin/rbenv' global '<%= @ruby_version %>'