sudo in installer
This commit is contained in:
parent
ab62c873f1
commit
990b416c3a
2 changed files with 2 additions and 2 deletions
|
@ -179,7 +179,7 @@ class mastodon (
|
|||
}
|
||||
exec { 'install_ruby':
|
||||
command => '/usr/local/bin/install_ruby.sh',
|
||||
user => $mastodon_user,
|
||||
# user => $mastodon_user,
|
||||
# cwd => "${mastodon_home}/.rbenv/",
|
||||
creates => "${mastodon_home}/.rbenv/versions/3.2.2/bin/ruby",
|
||||
require => File['/usr/local/bin/install_ruby.sh'],
|
||||
|
|
|
@ -3,5 +3,5 @@ set -euo pipefail
|
|||
|
||||
if [ ! -e '<%= @mastodon_home %>/.rbenv/versions/<%= @ruby_version %>/bin/ruby' ]; then
|
||||
cd '<%= @mastodon_home %>'
|
||||
RUBY_CONFIGURE_OPTS=--with-jemalloc ./.rbenv/bin/rbenv install '<%= @ruby_version %>'
|
||||
sudo -u <%= @mastodon_user %> RUBY_CONFIGURE_OPTS=--with-jemalloc ./.rbenv/bin/rbenv install '<%= @ruby_version %>'
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue