[Groonga-commit] groonga/groonga [master] deb: fix not to use temporary file

Back to archive index

HAYASHI Kentaro null+****@clear*****
Wed Sep 5 19:01:35 JST 2012


HAYASHI Kentaro	2012-09-05 19:01:35 +0900 (Wed, 05 Sep 2012)

  New Revision: 9e7da183b98531d819bc6a37035064b7e0c2f869
  https://github.com/groonga/groonga/commit/9e7da183b98531d819bc6a37035064b7e0c2f869

  Log:
    deb: fix not to use temporary file

  Modified files:
    packages/debian/groonga-server-common.postinst

  Modified: packages/debian/groonga-server-common.postinst (+1 -3)
===================================================================
--- packages/debian/groonga-server-common.postinst    2012-09-05 18:56:05 +0900 (35898f3)
+++ packages/debian/groonga-server-common.postinst    2012-09-05 19:01:35 +0900 (48a33ae)
@@ -24,9 +24,7 @@ fixperms() {
 create_database() {
     if [ ! -d /var/lib/groonga/db ]; then
         mkdir -p /var/lib/groonga/db
-        TEMP_FILE=`tempfile`
-        groonga -n /var/lib/groonga/db/db < $TEMP_FILE
-        rm -f $TEMP_FILE
+        groonga -n /var/lib/groonga/db/db shutdown > /dev/null
     fi
 }
 
-------------- next part --------------
HTML����������������������������...
다운로드 



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