]> git.pld-linux.org Git - packages/bash.git/commitdiff
- %post also in lua
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 25 Jun 2008 11:31:33 +0000 (11:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bash.spec -> 1.187

bash.spec

index 043431d79896c6c5926b3239a0508cf058f39393..44272e754af4c1dbe7047c39b6cea7311a10c813 100644 (file)
--- a/bash.spec
+++ b/bash.spec
@@ -261,22 +261,8 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-umask 022
-if [ ! -f /etc/shells ]; then
-       echo "/bin/bash" > /etc/shells
-       echo "/bin/rbash" >> /etc/shells
-else
-       if ! grep -q '^/bin/bash$' /etc/shells; then
-               echo "/bin/bash" >> /etc/shells
-       fi
-       if ! grep -q '^/bin/rbash$' /etc/shells; then
-               echo "/bin/rbash" >> /etc/shells
-       fi
-fi
-
-# XXX need this in lua
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%post  -p %add_etc_shells -p /bin/sh /bin/ksh
+os.execute("/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1")
 
 %preun -p %remove_etc_shells -p /bin/bash /bin/rbash
 
This page took 0.116056 seconds and 4 git commands to generate.