summaryrefslogtreecommitdiff
path: root/network/freerapid/doinst.sh
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2015-08-23 09:48:46 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-08-23 09:48:46 +0700
commit148ca20de48244719872d14c6387f52ce781f20d (patch)
tree27f7dfaed2e41b059bca3134ecad61fe2c19227c /network/freerapid/doinst.sh
parent97749447469c6200771c8bfe5a2a4402d1aa3bc9 (diff)
downloadslackbuilds-148ca20de48244719872d14c6387f52ce781f20d.tar.gz
network/freerapid: Fix compatibilities with new JDK.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/freerapid/doinst.sh')
-rw-r--r--network/freerapid/doinst.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/network/freerapid/doinst.sh b/network/freerapid/doinst.sh
index 9424ce43ff..9081430537 100644
--- a/network/freerapid/doinst.sh
+++ b/network/freerapid/doinst.sh
@@ -1,3 +1,9 @@
+set -e
+
+# create links for compatibility with new JDK versions...
+ln -sf /usr/lib/java/bin/java /usr/bin/java
+ln -sf /usr/lib/java/bin/javaws /usr/bin/javaws
+
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi