Piro / YUKI Hiroshi
null+****@clear*****
Tue Sep 23 15:41:21 JST 2014
Piro / YUKI Hiroshi 2014-09-23 15:41:21 +0900 (Tue, 23 Sep 2014) New Revision: ef550ef36f3250af0ca6b7c736a593c472459c9d https://github.com/droonga/droonga-http-server/commit/ef550ef36f3250af0ca6b7c736a593c472459c9d Message: Run external commands with environment variable correctly Modified files: bin/droonga-http-server-configure Modified: bin/droonga-http-server-configure (+2 -2) =================================================================== --- bin/droonga-http-server-configure 2014-09-19 20:48:54 +0900 (f8f0e17) +++ bin/droonga-http-server-configure 2014-09-23 15:41:21 +0900 (0c36320) @@ -40,7 +40,7 @@ function checkInstalledAsService() { exec('service droonga-http-server status', function(error, stdin, stdout) { if (error) { - exec('SYSTEMCTL_SKIP_REDIRECT=yes service droonga-http-server status', function(error, stdin, stdout) { + exec('env SYSTEMCTL_SKIP_REDIRECT=yes service droonga-http-server status', function(error, stdin, stdout) { installedAsService = stdin.indexOf('running') > -1 || stdin.indexOf('droonga-http-server is stopped') > -1; resolve(installedAsService); @@ -74,7 +74,7 @@ function ensureHaveWritePermission() { function checkRunningStatus() { return Q.Promise(function(resolve, reject, notify) { if (installedAsService) { - exec('SYSTEMCTL_SKIP_REDIRECT=yes service droonga-http-server status', + exec('env SYSTEMCTL_SKIP_REDIRECT=yes service droonga-http-server status', function(error, stdin, stdout) { running = !error && stdin.indexOf('running') > -1; resolve(running); -------------- next part -------------- HTML����������������������������... 다운로드