[Groonga-commit] droonga/chef-cookbooks at b0109df [master] Expand user home by eval

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jan 27 11:37:54 JST 2014


Kouhei Sutou	2014-01-27 11:37:54 +0900 (Mon, 27 Jan 2014)

  New Revision: b0109df49a2aac7eff2e61ed3ee9336080b3a148
  https://github.com/droonga/chef-cookbooks/commit/b0109df49a2aac7eff2e61ed3ee9336080b3a148

  Message:
    Expand user home by eval
    
    Is there any more straightforward way?

  Modified files:
    droonga/templates/default/sv-droonga-engine-run.erb

  Modified: droonga/templates/default/sv-droonga-engine-run.erb (+1 -1)
===================================================================
--- droonga/templates/default/sv-droonga-engine-run.erb    2014-01-27 11:35:49 +0900 (72b07f4)
+++ droonga/templates/default/sv-droonga-engine-run.erb    2014-01-27 11:37:54 +0900 (2d4ab3a)
@@ -9,7 +9,7 @@ ulimit -n 20480
 
 user="<%= node.droonga.engine.user_name %>"
 group="<%= node.droonga.engine.group_name %>"
-work_dir="$(echo ~${user})/droonga-engine/current"
+work_dir="$(eval "echo ~${user}")/droonga-engine/current"
 config_dir="${work_dir}/config"
 
 fluentd_conf="${config_dir}/fluentd.conf"
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index