From 11f336c6bb55dcffe81722ff4ad1740e7996fc31 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 28 Nov 2023 09:27:41 +0200 Subject: [PATCH] remove su --- manifests/init.pp | 2 +- templates/install_ruby.sh.erb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 83fdee7..fd155db 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -27,7 +27,7 @@ # [*ruby_version*] # String with the ruby version to use. Default: 3.2.2 # - +# class mastodon ( String $ensure = 'present', String $hostname = 'mastodon.example.org', diff --git a/templates/install_ruby.sh.erb b/templates/install_ruby.sh.erb index 13d611d..4a7090e 100644 --- a/templates/install_ruby.sh.erb +++ b/templates/install_ruby.sh.erb @@ -1,7 +1,6 @@ #!/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 %>'