source: branches/version1.1-tickets/Sincronizadas-multicast-ticket770/installer-info/install.sh

Last change on this file was 5406, checked in by irina, 2 years ago

#770 la restauración de sincronizadas se adaptan a varios repositorios. Se usan los parámetros y protocolos como en deployImage

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/bash
2#/**
3#@brief Instala el ticket 770 Sincronizadas-multicast-ticket77
4#*/ ##
5TICKET="770";
6BASEDIR="/opt/opengnsys/";
7TICKETDIR="${BASEDIR}tickets/";
8TARGETDIR="${TICKETDIR}${TICKET}/";
9SVNURLSOURCE="http://opengnsys.es/svn/branches/version1.1-tickets/Sincronizadas-multicast-ticket770"
10
11LISTTOBACKUP="${TICKETDIR}$TICKET.txt";
12
13PROG=$(basename $0)
14# Si se solicita, mostrar ayuda.
15if [ "$*" == "help" ]; then
16    echo -e " $PROG: Instala el ticket $TICKET: $(basename $SVNURLSOURCE) \n" \
17            "     Formato: $PROG" 
18   exit 0
19fi
20# Solo lo puede ejecutar el usuario root
21if [ "$USER" != "root" ]; then
22        echo "$PROG: Error: solo ejecutable por root" >&2
23        exit 1
24fi
25
26mkdir -p $TARGETDIR;
27
28svn export --force $SVNURLSOURCE $TARGETDIR;
29find $TARGETDIR -name .svn -type d -exec rm -fr {} \;
30
31find $TARGETDIR -type f | awk -F"$TARGETDIR" '{print $2}' > $LISTTOBACKUP;
32
33cp -r $TARGETDIR/admin/WebConsole/* $BASEDIR/www
34cp $TARGETDIR/admin/Sources/Services/* $BASEDIR/sbin
35cp $TARGETDIR/repoman/bin/* $BASEDIR/bin
36cp $TARGETDIR/server/bin/* $BASEDIR/bin
37cp $TARGETDIR/client/engine/* $BASEDIR/client/lib/engine/bin
38cp -r $TARGETDIR/client/shared/* $BASEDIR/client
Note: See TracBrowser for help on using the repository browser.