diff --git a/manifests/init.pp b/manifests/init.pp index 2e7943b..3ceb609 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -195,11 +195,15 @@ class mastodon ( ], } exec { 'install_mastodon': - command => '/usr/local/bin/install_mastodon.sh', - user => $mastodon_user, - creates => "${mastodon_home}/./.mastodon_install", - path => "${mastodon_home}/.rbenv/shims:${mastodon_home}/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", - timeout => 0, - require => File['/usr/local/bin/install_mastodon.sh'], + command => '/usr/local/bin/install_mastodon.sh', + user => $mastodon_user, + group => $mastodon_group, + environment => [ + "HOME=${mastodon_home}", + ], + creates => "${mastodon_home}/./.mastodon_install", + path => "${mastodon_home}/.rbenv/shims:${mastodon_home}/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", + timeout => 0, + require => File['/usr/local/bin/install_mastodon.sh'], } }