do ail_initdb at the end of transaction, do missing ldconfig 1.0_post
authorYan Yin <yan.yin@intel.com>
Wed, 6 Jun 2012 03:47:58 +0000 (11:47 +0800)
committerYan Yin <yan.yin@intel.com>
Wed, 6 Jun 2012 03:47:58 +0000 (11:47 +0800)
packaging/ail.changes [new file with mode: 0644]
packaging/ail.spec

diff --git a/packaging/ail.changes b/packaging/ail.changes
new file mode 100644 (file)
index 0000000..ccd60e8
--- /dev/null
@@ -0,0 +1,4 @@
+* Wed June 06 2012 Yan Yin <yan.yin@intel.com> - 0.2.29
+- ail_initdb should be done on %posttrans instead of %post 
+- add missing ldconfig in %post and %postun
+
index b4262aa..c8abf5b 100644 (file)
@@ -41,7 +41,7 @@ make %{?jobs:-j%jobs}
 rm -rf %{buildroot}
 %make_install
 
-%post
+%posttrans
 
 CHDBGID="6010"
 
@@ -65,7 +65,9 @@ ail_initdb
 update_DAC_for_db_file /opt/dbspace/.app_info.db
 update_DAC_for_db_file /opt/dbspace/.app_info.db-journal
 
-%postun
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
 
 %files
 %manifest ail.manifest