]> git.argeo.org Git - gpl/argeo-slc.git/blob - dist/slc/src/main/rpm/usr/bin/slc
Improve command line client
[gpl/argeo-slc.git] / dist / slc / src / main / rpm / usr / bin / slc
1 #!/bin/sh
2
3 OSGI_INSTALL_AREA=/usr/share/osgi/boot
4 OSGI_FRAMEWORK=$OSGI_INSTALL_AREA/org.eclipse.osgi.jar
5
6 CL_DIR=~/.slc/cl
7 DATA_DIR=$CL_DIR/data
8 CONF_DIR=$CL_DIR/conf
9
10 MODULE=$1
11 FLOW=$2
12
13 if [ ! -f $CONF_DIR/config.ini ];
14 then
15 mkdir -p $CONF_DIR
16 cp /etc/slc-cl/config.ini $CONF_DIR
17 fi
18
19 java \
20 -Dslc.launch.module="$MODULE" \
21 -Dslc.launch.flow="$FLOW" \
22 -jar $OSGI_FRAMEWORK \
23 -configuration $CONF_DIR \
24 -data $DATA_DIR \
25 -console \
26 -clean
27