Last active
August 23, 2021 14:07
-
-
Save RangerRick/c42766704eac2fd72a2f6f9977c43dae to your computer and use it in GitHub Desktop.
updated build.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
RELEASE=`.circleci/scripts/pom2version.sh pom.xml` | |
ROOT=`pwd` | |
if [ ! -e $ROOT/build.sh ]; then | |
echo "Invalid root" && exit 1 | |
fi | |
./target/opennms/bin/opennms stop | |
rm -rf ./target | |
rm -rf ./features/minion/container/karaf/target | |
./clean.pl && ./compile.pl -DskipTests=true && ./assemble.pl -DskipTests=true | |
rm -rf ./target/opennms-$RELEASE ./target/opennms | |
mkdir ./target/opennms-$RELEASE | |
ln -s $ROOT/target/opennms-$RELEASE $ROOT/target/opennms | |
tar zxvf ./target/opennms-$RELEASE.tar.gz -C $ROOT/target/opennms-$RELEASE | |
#rm -r target/opennms/jetty-webapps/opennms/assets/ | |
#ln -s $ROOT/core/web-assets/target/dist/assets $ROOT/target/opennms/jetty-webapps/opennms/assets | |
echo "RUNAS=$(id -u -n)" > "target/opennms/etc/opennms.conf" | |
./target/opennms/bin/runjava -s | |
./target/opennms/bin/install -dis | |
./target/opennms/bin/opennms -t start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment