add more parts to install to script

This commit is contained in:
Antonio J. Delgado 2023-11-28 10:42:50 +02:00
parent 46fe7b9563
commit c13d20362f
2 changed files with 2 additions and 7 deletions

View file

@ -185,13 +185,6 @@ class mastodon (
timeout => 0, timeout => 0,
require => File['/usr/local/bin/install_ruby.sh'], require => File['/usr/local/bin/install_ruby.sh'],
} }
exec { 'set_global_ruby_version':
command => "${mastodon_home}/.rbenv/libexec/rbenv global 3.2.2",
user => $mastodon_user,
cwd => "${mastodon_home}/.rbenv/",
# creates => '',
require => Exec['install_ruby'],
}
# exec { 'install_bundler': # exec { 'install_bundler':
# command => 'gem install bundler --no-document', # command => 'gem install bundler --no-document',
# user => $mastodon_user, # user => $mastodon_user,

View file

@ -4,4 +4,6 @@ set -euo pipefail
if [ ! -e '<%= @mastodon_home %>/.rbenv/versions/<%= @ruby_version %>/bin/ruby' ]; then if [ ! -e '<%= @mastodon_home %>/.rbenv/versions/<%= @ruby_version %>/bin/ruby' ]; then
cd '<%= @mastodon_home %>' cd '<%= @mastodon_home %>'
sudo -u <%= @mastodon_user %> RUBY_CONFIGURE_OPTS=--with-jemalloc '<%= @mastodon_home %>/.rbenv/bin/rbenv' install '<%= @ruby_version %>' 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
fi fi