add more parts to install to script
This commit is contained in:
parent
46fe7b9563
commit
c13d20362f
2 changed files with 2 additions and 7 deletions
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue