xulrunner: Refine post-install script

Make sure the post-install script only adds /usr/lib/xulrunner if it's not present.
This commit is contained in:
Brett Goulder 2008-04-03 13:21:44 -04:00
parent dc29611546
commit ac8e077d0a

View File

@ -1,4 +1,6 @@
#!/bin/sh
/bin/echo "/usr/lib/xulrunner" >> /etc/ld.so.conf
/sbin/ldconfig
if [ -z "`grep "usr/lib/xulrunner" /etc/ld.so.conf`" ]; then
/bin/echo "/usr/lib/xulrunner" >> /etc/ld.so.conf
/sbin/ldconfig
fi