puppet-mastodon/templates/install_ruby.sh.erb

8 lines
292 B
Text

#!/bin/bash
set -euo pipefail
su '<%= @mastodon_user %>'
if [ ! -e '<%= @mastodon_home %>/.rbenv/versions/<%= @ruby_version %>/bin/ruby' ]; then
cd '<%= @mastodon_home %>'
RUBY_CONFIGURE_OPTS=--with-jemalloc '<%= @mastodon_home %>/.rbenv/bin/rbenv' install '<%= @ruby_version %>'
fi