[389-ds-base/el5/master] port %post code from lua to shell script
Richard Allen Megginson
rmeggins at fedoraproject.org
Fri Feb 25 22:00:32 UTC 2011
commit b5a7bced384e40f65be8a8d61ae05a8a61164bae
Author: Rich Megginson <rmeggins at redhat.com>
Date: Fri Feb 25 13:03:42 2011 -0700
port %post code from lua to shell script
The %post code for the selinux stuff was in lua
389-ds-base.spec | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/389-ds-base.spec b/389-ds-base.spec
index d9cb224..66d2159 100644
--- a/389-ds-base.spec
+++ b/389-ds-base.spec
@@ -203,13 +203,13 @@ rm -rf $RPM_BUILD_ROOT
/sbin/chkconfig --add %{pkgname}
/sbin/ldconfig
/sbin/chkconfig --add %{pkgname}-snmp
--- load the selinux policy module
-variants = "%{selinux_variants}"
-for selinuxvariant in string.gfind(variants, "%a+") do
- os.execute('semodule -s '..selinuxvariant..' -i %{_datadir}/selinux/'..selinuxvariant..'/%{pkgname}.pp > /dev/null 2>&1')
-end
--- label the files installed by this package
-os.execute('fixfiles -R %{name} restore > /dev/null 2>&1')
+# load the selinux policy module
+for selinuxvariant in %{selinux_variants}
+do
+ semodule -s $selinuxvariant -i %{_datadir}/selinux/$selinuxvariant/%{pkgname}.pp > /dev/null 2>&1
+done
+# label the files installed by this package
+fixfiles -R %{name} restore > /dev/null 2>&1
%preun
if [ $1 = 0 ]; then # Final removal
More information about the scm-commits
mailing list