blob: 63b32c61deb48ba221e94e83b27bc6766847e8e5 [file] [log] [blame]
#!/bin/sh -e
echo "-----------------------------------"
echo "| PLEASE SHUTDOWN SLING MANUALLY |"
echo "| AFTER STARTUP IS COMPLETE |"
echo "-----------------------------------"
set +x
sleep 3
DIR=`pwd`
FOLDER=`basename $DIR`
if [ "$FOLDER" == "bin" ]; then
DIR=`cd ..;pwd`
fi
cd ${DIR}
rm -rf launcher
rm -rf sling/sling-composite/repository-libs
additionalFeatures=""
for features in "$@"; do
additionalFeatures="${additionalFeatures}-af ${features} "
done
if [ "x${additionalFeatures}x" == "xx" ]; then
echo "For an Update a least one Feature needs to be added"
exit
fi
java -jar \
target/org.apache.sling.kickstart-0.0.8.jar \
-s src/main/resources/composite-nodes/feature-sling12-two-headed.json \
-af src/main/resources/composite-nodes/feature-two-headed-seed.json \
${additionalFeatures} \
-c sling/sling-composite