fix home
This commit is contained in:
parent
f9bccfa7b3
commit
12627caf78
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue