From 12627caf78be9ef843d23014f14c6ffdf9c3271f Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 28 Nov 2023 14:51:25 +0200 Subject: [PATCH] fix home --- templates/install_mastodon.sh.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/install_mastodon.sh.erb b/templates/install_mastodon.sh.erb index 4402ac1..8fdf7de 100644 --- a/templates/install_mastodon.sh.erb +++ b/templates/install_mastodon.sh.erb @@ -4,8 +4,8 @@ set -euo pipefail if [ ! -e '<%= @mastodon_home %>/.mastodon_install' ]; then cd '<%= @mastodon_home %>' echo "Installing ruby..." - export PATH="$HOME/.rbenv/bin:$PATH" - eval "$($HOME/.rbenv/bin/rbenv init -)" + export PATH="<%= @mastodon_home %>/.rbenv/bin:$PATH" + eval "$(<%= @mastodon_home %>/.rbenv/bin/rbenv init -)" 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