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 29 30 31
|
#!/bin/sh
JAVA_ARGS="-Xmx192M"
if [ -f /etc/default/puppetdb ]; then
. /etc/default/puppetdb
fi
jar_cmd() {
exec /usr/bin/java $JAVA_ARGS -cp /usr/share/puppetdb/puppetdb.jar clojure.main -m puppetlabs.puppetdb.core "$@"
}
usage() {
cat <<-EOF
usage: $0 import|export|version -h|ARGS
EOF
}
case "$1" in
version|import|export|anonymize)
jar_cmd "$@"
;;
ssl-setup|config-migration)
echo "'$1' is not supported, see /usr/share/doc/puppetdb/README.Debian." >&2
exit 1
;;
*)
usage
exit 1
;;
esac
|