source: trunk/install.sh @ 2

Last change on this file since 2 was 2, checked in by smasson, 17 years ago

initial import

File size: 1.4 KB
Line 
1#!/bin/sh
2#
3# module :
4# installation des pages bibnemomaf dans DIRFINAL* donné en argument
5# à partir des fichiers produits ou copiés ou liés sous DIRWWW
6# donné en argument
7#
8# nb : !!! attention utilisation du compte fplod@aedon.lodyc.jussieu.fr
9#
10# source :
11# /usr/home/fplod/incas/bibnemo/src/bibnemomaf/install.sh sur aedon.locean-ipsl.upmc.fr
12#
13# update
14# fplod 2007-04-26T11:51:42Z aedon.locean-ipsl.upmc.fr (Darwin)
15#
16# ++ simu paramètre
17DIRFINALLOCEAN=smasson@arete.locean-ipsl.upmc.fr:Sites/bibnemomaf/
18DIRWWW=/tmp/bibopa/
19#
20echo "Do you want to install on ${DIRFINALLOCEAN}  (y|[n]) ?"
21answer=" "
22#read answer
23answer=n
24case ${answer} in
25 y|Y)
26 # copy of ${DIRWWW} on $DIRFINALLOCEAN
27 echo "iii : update of ${DIRFINALLOCEAN}"
28 rsync -av -e ssh ${DIRWWW}/ ${DIRFINALLOCEAN}
29 # pas sur aedon ssh fplod@cerbere.lodyc.jussieu.fr /usr/local_linux/bin/update_web
30 ;;
31 *)
32 echo "no update of ${DIRFINALLOCEAN}"
33 ;;
34esac
35#
36# ++ simu paramètre
37DIRFINALLOCEAN=opatlod@cerbere.locean-ipsl.upmc.fr:NEMO/general/biblio_new/
38#
39echo "Do you want to install on ${DIRFINALLOCEAN}  (y|[n]) ?"
40answer=" "
41#read answer
42answer=y
43case ${answer} in
44 y|Y)
45 # copy of ${DIRWWW} on $DIRFINALLOCEAN
46 echo "iii : update of ${DIRFINALLOCEAN}"
47 rsync -av -e ssh ${DIRWWW}/ ${DIRFINALLOCEAN}
48 ssh opatlod@cerbere.lodyc.jussieu.fr /usr/local_linux/bin/update_web
49 ;;
50 *)
51 echo "no update of ${DIRFINALLOCEAN}"
52 ;;
53esac
54#
55# normal exit
56exit 0
Note: See TracBrowser for help on using the repository browser.