remove su
This commit is contained in:
parent
89c963a897
commit
11f336c6bb
2 changed files with 1 additions and 2 deletions
|
@ -27,7 +27,7 @@
|
||||||
# [*ruby_version*]
|
# [*ruby_version*]
|
||||||
# String with the ruby version to use. Default: 3.2.2
|
# String with the ruby version to use. Default: 3.2.2
|
||||||
#
|
#
|
||||||
|
#
|
||||||
class mastodon (
|
class mastodon (
|
||||||
String $ensure = 'present',
|
String $ensure = 'present',
|
||||||
String $hostname = 'mastodon.example.org',
|
String $hostname = 'mastodon.example.org',
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
su '<%= @mastodon_user %>'
|
|
||||||
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 %>'
|
||||||
RUBY_CONFIGURE_OPTS=--with-jemalloc '<%= @mastodon_home %>/.rbenv/bin/rbenv' install '<%= @ruby_version %>'
|
RUBY_CONFIGURE_OPTS=--with-jemalloc '<%= @mastodon_home %>/.rbenv/bin/rbenv' install '<%= @ruby_version %>'
|
||||||
|
|
Loading…
Reference in a new issue