Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleDeploy KLighDning
linenumberstrue
collapsetrue
#! /bin/bash
#
# Deploy the KLighDning product and install some features
#

# location of the klighdning product
HOST="http://rtsys.informatik.uni-kiel.de"
SERVER_PATH="/~kieler/files/nightly/klighdning/"
PLATFORM="linux.gtk.x86_64"
FILE="klighdning_nightly_*-${PLATFORM}.zip"

# features to be installed into the klighdning instance
FEATURES="kgraph,klighd.examples"

# local models repository
MODELS_REPO="/home/layout/models"


echo "##################################"
echo "###### Deploying KLighDning ######"
echo ""
echo "Downloading ... "
echo "   archive: ${FILE}"
echo "   host:    ${HOST}${SERVER_PATH}"

wget -r -nd -P tmp -A "$FILE" -I $SERVER_PATH "${HOST}${SERVER_PATH}" 2>/dev/null

echo "Unzipping ..."
cd tmp
unzip -q *.zip
cd ..
mv tmp/klighdning .
rm -rf tmp

echo "Make the scripts executable ..."
chmod u+x klighdning/*.sh

echo "Installing features ..."
cd klighdning
./install_kieler_features.sh "$FEATURES"

echo "Starting KLighDning ..."
./start.sh "$MODELS_REPO"

cd ..

 

 

Example