[Groonga-commit] droonga/droonga-engine at a5c8529 [master] Run external commands with environment variable correctly

Back to archive index

Piro / YUKI Hiroshi null+****@clear*****
Tue Sep 23 15:27:18 JST 2014


Piro / YUKI Hiroshi	2014-09-23 15:27:18 +0900 (Tue, 23 Sep 2014)

  New Revision: a5c852973b6b6b5542e4a01f91e9ba27ed6e5294
  https://github.com/droonga/droonga-engine/commit/a5c852973b6b6b5542e4a01f91e9ba27ed6e5294

  Message:
    Run external commands with environment variable correctly

  Modified files:
    bin/droonga-engine-configure

  Modified: bin/droonga-engine-configure (+2 -2)
===================================================================
--- bin/droonga-engine-configure    2014-09-19 15:17:37 +0900 (95cf85c)
+++ bin/droonga-engine-configure    2014-09-23 15:27:18 +0900 (b9db48b)
@@ -77,7 +77,7 @@ def installed_as_service?
                      :err => "/dev/null")
   return true if succeeded
 
-  result = `SYSTEMCTL_SKIP_REDIRECT=yes service droonga-engine status`
+  result = `env SYSTEMCTL_SKIP_REDIRECT=yes service droonga-engine status`
   result.include?("running") or result.include?("droonga-engine is stopped")
 end
 
@@ -91,7 +91,7 @@ end
 
 def running?(configuration)
   if installed_as_service?
-    result = `SYSTEMCTL_SKIP_REDIRECT=yes service droonga-engine status`
+    result = `env SYSTEMCTL_SKIP_REDIRECT=yes service droonga-engine status`
     result.include?("running")
   else
     system("droonga-engine-status",
-------------- next part --------------
HTML����������������������������...
Download 



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