Skip to content
Snippets Groups Projects
Commit a7889234 authored by felmer's avatar felmer
Browse files

LMS-2471 introducing restore-config-snapshot and use it in install-servers.sh...

LMS-2471 introducing restore-config-snapshot and use it in install-servers.sh because cp -r doesn't work because jetty is a symbolic link.

SVN: 22645
parent 4481f096
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
#
#
if [ $# -ne 4 ]; then
echo "Usage: install-servers.sh <servers>"
echo "Usage: install-servers.sh <config snapshot repository> <builds fetching script> <config file list 1> ... <config file list n>"
exit 1
fi
......@@ -43,5 +43,5 @@ rm -f datastore_server*.zip
"$OPENBIS_AS/install.sh" "$OPENBIS_AS"
YOUNGEST_REPOSITORY=`ls "$REPOSITORY"|sort -r|sed q`
cp -pfr "$REPOSITORY/$YOUNGEST_REPOSITORY/"* "$SERVERS"
"$BIN_DIR/restore-config-snapshot.sh" "$SERVERS" "$REPOSITORY/$YOUNGEST_REPOSITORY/"
#! /bin/bash
#
if [ $# -ne 2 ]; then
echo "Usage: restore-config-snapshot.sh <servers> <config snapshot folder>"
exit 1
fi
SERVERS="$1"
SNAPSHOT="$2"
for file in `find "$SNAPSHOT"`; do
if [ -f $file ]; then
cp -pf ${file} $SERVERS/${file#$SNAPSHOT}
fi
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment