Skip to content

Instantly share code, notes, and snippets.

@hugoduncan
Created April 15, 2010 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugoduncan/367706 to your computer and use it in GitHub Desktop.
Save hugoduncan/367706 to your computer and use it in GitHub Desktop.
(defscript jre-lib-security [])
(defimpl jre-lib-security :default []
(str @(update-java-alternatives -l "|" cut "-d ' '" -f 3 "|" head -1)
"/jre/lib/security/"))
(defn security-file
"Installs JCE policy jars (string paths, please) in the remote
JAVA_HOME's lib/security directory, enabling the use of \"unlimited strength\"
crypto implementations. Options are as for remote-file."
[filename & options]
(apply remote-file (script (str (jre-lib-security) "/" ~filename)) options))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment