[Groonga-commit] droonga/chef-cookbooks at 270cbdb [master] Run "npm install" as the user for http-server

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Apr 21 16:48:27 JST 2014


YUKI Hiroshi	2014-04-21 16:48:27 +0900 (Mon, 21 Apr 2014)

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

  Message:
    Run "npm install" as the user for http-server

  Modified files:
    droonga/attributes/default.rb
    droonga/recipes/http-server.rb

  Modified: droonga/attributes/default.rb (+2 -0)
===================================================================
--- droonga/attributes/default.rb    2014-04-21 15:45:23 +0900 (4b36221)
+++ droonga/attributes/default.rb    2014-04-21 16:48:27 +0900 (228a5f3)
@@ -1,3 +1,5 @@
+nodejs["npm"] = "1.4.7"
+
 default.droonga.engine.user_name  = "droonga-engine"
 default.droonga.engine.group_name = "droonga-engine"
 default.droonga.engine.home       = "/home/droonga-engine"

  Modified: droonga/recipes/http-server.rb (+1 -1)
===================================================================
--- droonga/recipes/http-server.rb    2014-04-21 15:45:23 +0900 (1e8f83e)
+++ droonga/recipes/http-server.rb    2014-04-21 16:48:27 +0900 (64227c3)
@@ -54,7 +54,7 @@ deploy "#{home_dir}/droonga-http-server" do
   action :deploy
 
   migrate true
-  migration_command "npm install"
+  migration_command "su -c '#{user_name}' 'npm install'"
 
   before_migrate do
     log_dir = "#{new_resource.shared_path}/log"
-------------- next part --------------
HTML����������������������������...
Download 



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