From bbd4074f4379931dd2c7aa9a28e9d48b9308384f Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Tue, 28 Nov 2023 18:51:16 +0200 Subject: [PATCH] add path --- manifests/init.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index bf38161..8c586c8 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -262,8 +262,9 @@ class mastodon ( } # RAILS_ENV=production rails db:setup exec { 'db_setup': - command => "rails db:setup > ${mastodon_home}/db_setup_done", + command => "${mastodon_home}/live/bin/rails db:setup > ${mastodon_home}/db_setup_done", creates => "${mastodon_home}/db_setup_done", + path => "${mastodon_home}/.rbenv/shims:${mastodon_home}/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", environment => [ 'RAILS_ENV=production', ],