From 26019c0dac9cbd92f234a3cee53245c06623b7dd Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 28 Nov 2023 15:16:03 +0200 Subject: [PATCH] fix path --- templates/install_mastodon.sh.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/install_mastodon.sh.erb b/templates/install_mastodon.sh.erb index 5fee97d..5e24c61 100644 --- a/templates/install_mastodon.sh.erb +++ b/templates/install_mastodon.sh.erb @@ -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 %>'