mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-23 21:31:00 +02:00
16 lines
685 B
Bash
Executable File
16 lines
685 B
Bash
Executable File
#!/bin/bash
|
|
# -----------------------------------------------------------------------------
|
|
# Makes sure local ONOS karaf instance is primed & staged and then launches
|
|
# karaf using the supplied arguments.
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# FIXME: temporarily fix 500 error in GUI, need to be improved with a better way
|
|
if echo $* | egrep "\bclean\b"; then
|
|
. $ONOS_ROOT/tools/build/envDefaults
|
|
export KARAF_ROOT=${KARAF_ROOT:-~/Applications/apache-karaf-$KARAF_VERSION}
|
|
export STAGE=$(dirname $KARAF_ROOT)
|
|
echo "Removing data directories..."
|
|
[ -d $KARAF_ROOT ] && rm -fr $STAGE/data
|
|
fi
|
|
|
|
onos-setup-karaf && karaf "$@" |