All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sh.server.fedora-reload-policies.sh Maven / Gradle / Ivy

Go to download

The Fedora Client is a Java Library that allows API access to a Fedora Repository. The client is typically one part of a full Fedora installation.

The newest version!
#!/bin/sh

if [ -z "$JAVA_HOME" ]; then
    echo "ERROR: Environment variable, JAVA_HOME must be set."
    exit 1
fi

if [ -z "$FEDORA_HOME" ]; then
    echo "ERROR: Environment variable, FEDORA_HOME must be set."
    exit 1
fi

if [ -z "$CATALINA_HOME" ]; then
    echo "ERROR: Environment variable, CATALINA_HOME must be set."
    exit 1
fi

_CP=$CATALINA_HOME/webapps/fedora/WEB-INF/classes
_ED=$CATALINA_HOME/webapps/fedora/WEB-INF/lib:$CATALINA_HOME/common/endorsed:$CATALINA_HOME/common/lib

(exec "$JAVA_HOME/bin/java" -cp "$_CP" \
    -Djavax.net.ssl.trustStore="$FEDORA_HOME/server/truststore" \
    -Djavax.net.ssl.trustStorePassword=tomcat \
    -Djava.endorsed.dirs="$_ED" -Dfedora.home="$FEDORA_HOME" \
    fedora.server.utilities.ServerUtility $1 $2 $3)

exit $?




© 2015 - 2025 Weber Informatics LLC | Privacy Policy