From c5bd39d3ba2ceb06e3e991964543b807c9f4ce5a Mon Sep 17 00:00:00 2001 From: Sergio Cambra Date: Mon, 24 Mar 2014 16:42:06 +0100 Subject: [PATCH] User actual home user It should be better to get actual home with echo ~username. For example, my users have home in /var/www/clients/ instead of /home/, it's very easy to get it with that command --- lib/recap/tasks/env.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/recap/tasks/env.rb b/lib/recap/tasks/env.rb index 662eb8a..ad2fc81 100644 --- a/lib/recap/tasks/env.rb +++ b/lib/recap/tasks/env.rb @@ -24,7 +24,7 @@ module Recap::Tasks::Env extend Recap::Support::Namespace namespace :env do - _cset(:environment_file) { "/home/#{application_user}/.env" } + _cset(:environment_file) { "`echo ~#{application_user}`/.env" } # The `env` task displays the current configuration environment. Note that this doesn't # include all environment variables, only those stored in the `.env` file.