Skip to content
Snippets Groups Projects
Commit 70e79937 authored by felmer's avatar felmer
Browse files

LMS-1552 keep openbis.config separately

SVN: 16670
parent 63464338
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,6 @@ mkdir -p "$war_classes"/etc ...@@ -67,7 +67,6 @@ mkdir -p "$war_classes"/etc
test -f "$properties_file" && cp -p "$properties_file" "$war_classes/" test -f "$properties_file" && cp -p "$properties_file" "$war_classes/"
test -f "$logconf_file" && cp -p "$logconf_file" "$war_classes/etc/" test -f "$logconf_file" && cp -p "$logconf_file" "$war_classes/etc/"
zip "$installation_folder"/$war_file "$war_classes"/service.properties "$war_classes"/etc/log.xml *.js *.html images/* zip "$installation_folder"/$war_file "$war_classes"/service.properties "$war_classes"/etc/log.xml *.js *.html images/*
#cp -p "$installation_folder"/$war_file "$jetty_folder"/webapps
cp -p "$installation_folder"/$war_file "$jetty_folder" cp -p "$installation_folder"/$war_file "$jetty_folder"
rm -rf WEB-INF rm -rf WEB-INF
...@@ -87,10 +86,8 @@ cp -p "$installation_folder"/setup-env "$JETTY_BIN_DIR" ...@@ -87,10 +86,8 @@ cp -p "$installation_folder"/setup-env "$JETTY_BIN_DIR"
# Create a file called 'jetty.properties'. # Create a file called 'jetty.properties'.
JETTY_PROPERTIES="$JETTY_BIN_DIR"/jetty.properties JETTY_PROPERTIES="$JETTY_BIN_DIR"/jetty.properties
cat "$installation_folder"/openbis.conf > "$JETTY_PROPERTIES" cp "$installation_folder"/openbis.conf "$JETTY_BIN_DIR"
echo "" >> "$JETTY_PROPERTIES" echo "JETTY_PORT=$JETTY_PORT" > "$JETTY_PROPERTIES"
echo "# Jetty options" >> "$JETTY_PROPERTIES"
echo "JETTY_PORT=$JETTY_PORT" >> "$JETTY_PROPERTIES"
echo "JETTY_STOP_PORT=8079" >> "$JETTY_PROPERTIES" echo "JETTY_STOP_PORT=8079" >> "$JETTY_PROPERTIES"
echo "JETTY_STOP_KEY=secret" >> "$JETTY_PROPERTIES" echo "JETTY_STOP_KEY=secret" >> "$JETTY_PROPERTIES"
......
...@@ -7,6 +7,7 @@ if [ ${JETTY_BIN_DIR#/} == ${JETTY_BIN_DIR} ]; then ...@@ -7,6 +7,7 @@ if [ ${JETTY_BIN_DIR#/} == ${JETTY_BIN_DIR} ]; then
fi fi
source "$JETTY_BIN_DIR"/jetty.properties source "$JETTY_BIN_DIR"/jetty.properties
source "$JETTY_BIN_DIR"/openbis.conf
cd "$JETTY_BIN_DIR"/.. cd "$JETTY_BIN_DIR"/..
JVM=java JVM=java
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment