YUKI Hiroshi
null+****@clear*****
Thu Sep 18 16:02:04 JST 2014
YUKI Hiroshi 2014-09-18 16:02:04 +0900 (Thu, 18 Sep 2014) New Revision: d960debc0347cf882553da7b0002af7a58e2e617 https://github.com/droonga/droonga-engine/commit/d960debc0347cf882553da7b0002af7a58e2e617 Message: Set permissions correctly for the service user Modified files: bin/droonga-engine-configure Modified: bin/droonga-engine-configure (+7 -1) =================================================================== --- bin/droonga-engine-configure 2014-09-18 15:56:21 +0900 (12b197a) +++ bin/droonga-engine-configure 2014-09-18 16:02:04 +0900 (ff4cac7) @@ -266,14 +266,20 @@ if options[:reset_config] end Droonga::SafeFileWriter.write(Droonga::Path.config, YAML.dump(new_configuration)) + if installed_as_service? + FileUtils.chown(service_user_name, service_user_name, Droonga::Path.config) + end end if options[:reset_catalog] system("droonga-engine-catalog-generate", "--output", Droonga::Path.catalog.to_s, "--hosts", host, - "--port", port, + "--port", port.to_s, "--tag", tag) + if installed_as_service? + FileUtils.chown(service_user_name, service_user_name, Droonga::Path.catalog) + end end start_service if running -------------- next part -------------- HTML����������������������������...다운로드