[Groonga-commit] groonga/groonga [master] rpm fedora: fix to check %post condition for daemon-reload

Back to archive index

HAYASHI Kentaro null+****@clear*****
Tue Sep 4 18:15:56 JST 2012


HAYASHI Kentaro	2012-09-04 18:15:56 +0900 (Tue, 04 Sep 2012)

  New Revision: eb72e0aefa60d7fd55594cbd044eb6275aec3217
  https://github.com/groonga/groonga/commit/eb72e0aefa60d7fd55594cbd044eb6275aec3217

  Log:
    rpm fedora: fix to check %post condition for daemon-reload
    
    $1 == 1 -> install
    $1 == 2 -> upgrade

  Modified files:
    packages/rpm/fedora/groonga.spec.in

  Modified: packages/rpm/fedora/groonga.spec.in (+3 -2)
===================================================================
--- packages/rpm/fedora/groonga.spec.in    2012-09-04 17:32:11 +0900 (5bf1798)
+++ packages/rpm/fedora/groonga.spec.in    2012-09-04 18:15:56 +0900 (6a94ee1)
@@ -233,8 +233,9 @@ if [ $1 = 1 ] ; then
 fi
 
 %post httpd
-/bin/systemctl daemon-reload >/dev/null 2>&1 || :
-if [ $1 = 2 ] ; then
+if [ $1 = 1 ] ; then
+	/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+elif [ $1 = 2 ]; then
 	%{_sbindir}/groonga-httpd-upgrade
 fi
 
-------------- next part --------------
HTML����������������������������...
下载 



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