Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Copies the Oracle Java desktop-related files to the system.
- #
- # Be sure the JAVA_INST_DIR is set correctly. Run as root.
- #
- # A better version of this would link all the files rather than copy
- # them, but I'm being lazy.
- #
- # Mithat Konar 2011-11-26
- ### config ###
- JAVA_INST_DIR="/opt/java/jdk/jre"
- ### end config ###
- mkdir -p /usr/local/share/applications
- mkdir -p /usr/local/share/icons
- mkdir -p /usr/local/share/mime
- cp -rf $JAVA_INST_DIR/lib/desktop/* /usr/local/share
- update-mime-database /usr/local/share/mime
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement