wok-6.x rev 1409
get-java6-jre: allow any firefox version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 24 11:12:17 2008 +0000 (2008-09-24) |
parents | 12531da22255 |
children | c8fcc267ac25 |
files | get-java6-jre/stuff/get-java6-jre.sh |
line diff
1.1 --- a/get-java6-jre/stuff/get-java6-jre.sh Wed Sep 24 08:10:52 2008 +0000 1.2 +++ b/get-java6-jre/stuff/get-java6-jre.sh Wed Sep 24 11:12:17 2008 +0000 1.3 @@ -61,10 +61,11 @@ 1.4 post_install() 1.5 { 1.6 echo "Processing post install commands..." 1.7 - if [ -d /usr/lib/firefox-3.0.1 ]; then 1.8 - cd /usr/lib/firefox-3.0.1/plugins 1.9 + for i in /usr/lib/firefox*; do 1.10 + [ -d $i ] || continue 1.11 + cd $i/plugins 1.12 ln -s /usr/lib/java/jre\$VERSION/plugin/i386/ns7/libjavaplugin_oji.so 1.13 - fi 1.14 + done 1.15 1.16 cd /usr/bin 1.17 ln -s /usr/lib/java/jre\$VERSION/bin/java 1.18 @@ -72,7 +73,7 @@ 1.19 1.20 post_remove() 1.21 { 1.22 - rm -f /usr/lib/firefox-3.0.1/plugins/libjavaplugin_oji.so 1.23 + rm -f /usr/lib/firefox*/plugins/libjavaplugin_oji.so 1.24 rm -f /usr/bin/java 1.25 } 1.26 EOT