mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
Updated build script to ensure correct ports upon install
This commit is contained in:
1 parent
e47b52798f
commit
498c409b89
2 files changed
+19
No files matched your search
@@ -351,6 +351,7 @@ if [[ "$@" == "install" ]] || [[ "$@" == "all" ]]; then
|
|||||||
cp -v $PROJECT_HOME/java/target/configuration/monitoring.properties configuration/
|
cp -v $PROJECT_HOME/java/target/configuration/monitoring.properties configuration/
|
||||||
cp -v $PROJECT_HOME/configuration/mongodb.cfg $ACDIR/
|
cp -v $PROJECT_HOME/configuration/mongodb.cfg $ACDIR/
|
||||||
|
|
||||||
|
cp -v $PROJECT_HOME/java/target/env.sh $ACDIR/
|
||||||
cp -v $PROJECT_HOME/java/target/start $ACDIR/
|
cp -v $PROJECT_HOME/java/target/start $ACDIR/
|
||||||
cp -v $PROJECT_HOME/java/target/stop $ACDIR/
|
cp -v $PROJECT_HOME/java/target/stop $ACDIR/
|
||||||
cp -v $PROJECT_HOME/java/target/udpmirror $ACDIR/
|
cp -v $PROJECT_HOME/java/target/udpmirror $ACDIR/
|
||||||
@@ -368,6 +369,22 @@ if [[ "$@" == "install" ]] || [[ "$@" == "all" ]]; then
|
|||||||
cp -v $PROJECT_HOME/configuration/buildAndUpdateProduct.sh $ACDIR/
|
cp -v $PROJECT_HOME/configuration/buildAndUpdateProduct.sh $ACDIR/
|
||||||
|
|
||||||
echo $VERSION_INFO > $ACDIR/configuration/jetty/version.txt
|
echo $VERSION_INFO > $ACDIR/configuration/jetty/version.txt
|
||||||
|
|
||||||
|
# make sure to save the information from env.sh
|
||||||
|
. $ACDIR/env.sh
|
||||||
|
sed -i "s/mongo.port=.*$/mongo.port=$MONGODB_PORT/g" $ACDIR/configuration/config.ini
|
||||||
|
sed -i "s/expedition.udp.port=.*$/expedition.udp.port=$EXPEDITION_PORT/g" $ACDIR/configuration/config.ini
|
||||||
|
sed -i "s/replication.exchangeName=.*$/replication.exchangeName=$REPLICATION_CHANNEL/g" $ACDIR/configuration/config.ini
|
||||||
|
echo "I have updated the configuration with the following data:"
|
||||||
|
echo "SERVER_NAME: $SERVER_NAME"
|
||||||
|
echo "SERVER_PORT: $SERVER_PORT"
|
||||||
|
echo "MEMORY: $MEMORY"
|
||||||
|
echo "TELNET_PORT: $TELNET_PORT"
|
||||||
|
echo "MONGODB_PORT: $MONGODB_PORT"
|
||||||
|
echo "EXPEDITION_PORT: $EXPEDITION_PORT"
|
||||||
|
echo "REPLICATION_CHANNEL: $REPLICATION_CHANNEL"
|
||||||
|
echo ""
|
||||||
|
|
||||||
echo "Installation complete. You may now start the server using ./start"
|
echo "Installation complete. You may now start the server using ./start"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ SERVER_NAME=MASTER
|
|||||||
|
|
||||||
MEMORY="1024m"
|
MEMORY="1024m"
|
||||||
|
|
||||||
|
REPLICATION_CHANNEL=sapsailinganalytics-master
|
||||||
|
|
||||||
TELNET_PORT=14885
|
TELNET_PORT=14885
|
||||||
SERVER_PORT=8885
|
SERVER_PORT=8885
|
||||||
MONGODB_PORT=27017
|
MONGODB_PORT=27017
|
||||||
|
|||||||
Reference in new issue
Block a user