forked from puppetlabs/puppetdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpdb
More file actions
executable file
·28 lines (21 loc) · 836 Bytes
/
pdb
File metadata and controls
executable file
·28 lines (21 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
set -e
jar="${PDB_JAR:-target/puppetdb.jar}"
bcprov="${BCPROV_JAR:-$HOME/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.60/bcprov-jdk15on-1.60.jar}"
bcpkix="${BCPKIX_JAR:-$HOME/.m2/repository/org/bouncycastle/bcpkix-jdk15on/1.60/bcpkix-jdk15on-1.60.jar}"
if ! test -e "$jar"; then
printf 'Unable to find the puppetdb jar %q; have you run "lein uberjar"?\n' \
"$jar" 1>&2
exit 2
fi
if ! test -e "$bcprov"; then
printf 'Unable to find the bouncy castle provider jar %q; have you run "lein deps"?\n' \
"$bcprov" 1>&2
exit 2
fi
if ! test -e "$bcpkix"; then
printf 'Unable to find the bouncy castle provider jar %q; have you run "lein deps"?\n' \
"$bcpkix" 1>&2
exit 2
fi
exec java -cp "$jar:$bcprov:$bcpkix" clojure.main -m puppetlabs.puppetdb.core "$@"