Last change
on this file since 14 was
14,
checked in by smasson, 17 years ago
|
can give the answer with input parameters
|
File size:
1.6 KB
|
Rev | Line | |
---|
[2] | 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] | 14 | # smasson 2007-06-07T16:43:42Z arete.locean-ipsl.upmc.fr (Darwin) |
---|
| 15 | # can give the answer with input parameters |
---|
[2] | 16 | # fplod 2007-04-26T11:51:42Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
| 17 | # |
---|
| 18 | # ++ simu paramètre |
---|
| 19 | DIRFINALLOCEAN=smasson@arete.locean-ipsl.upmc.fr:Sites/bibnemomaf/ |
---|
| 20 | DIRWWW=/tmp/bibopa/ |
---|
| 21 | # |
---|
[14] | 22 | answer=${1:-" "} |
---|
[2] | 23 | case ${answer} in |
---|
[14] | 24 | y|Y|n|N) |
---|
| 25 | ;; |
---|
| 26 | *) |
---|
| 27 | echo "Do you want to install on ${DIRFINALLOCEAN} (y|[n]) ?" |
---|
| 28 | read answer |
---|
| 29 | ;; |
---|
| 30 | esac |
---|
| 31 | case ${answer} in |
---|
[2] | 32 | y|Y) |
---|
| 33 | # copy of ${DIRWWW} on $DIRFINALLOCEAN |
---|
| 34 | echo "iii : update of ${DIRFINALLOCEAN}" |
---|
| 35 | rsync -av -e ssh ${DIRWWW}/ ${DIRFINALLOCEAN} |
---|
| 36 | # pas sur aedon ssh fplod@cerbere.lodyc.jussieu.fr /usr/local_linux/bin/update_web |
---|
| 37 | ;; |
---|
| 38 | *) |
---|
| 39 | echo "no update of ${DIRFINALLOCEAN}" |
---|
| 40 | ;; |
---|
| 41 | esac |
---|
| 42 | # |
---|
| 43 | # ++ simu paramètre |
---|
| 44 | DIRFINALLOCEAN=opatlod@cerbere.locean-ipsl.upmc.fr:NEMO/general/biblio_new/ |
---|
| 45 | # |
---|
[14] | 46 | answer=${2:-" "} |
---|
[2] | 47 | case ${answer} in |
---|
[14] | 48 | y|Y|n|N) |
---|
| 49 | ;; |
---|
| 50 | *) |
---|
| 51 | echo "Do you want to install on ${DIRFINALLOCEAN} (y|[n]) ?" |
---|
| 52 | read answer |
---|
| 53 | ;; |
---|
| 54 | esac |
---|
| 55 | case ${answer} in |
---|
[2] | 56 | y|Y) |
---|
| 57 | # copy of ${DIRWWW} on $DIRFINALLOCEAN |
---|
| 58 | echo "iii : update of ${DIRFINALLOCEAN}" |
---|
| 59 | rsync -av -e ssh ${DIRWWW}/ ${DIRFINALLOCEAN} |
---|
| 60 | ssh opatlod@cerbere.lodyc.jussieu.fr /usr/local_linux/bin/update_web |
---|
| 61 | ;; |
---|
| 62 | *) |
---|
| 63 | echo "no update of ${DIRFINALLOCEAN}" |
---|
| 64 | ;; |
---|
| 65 | esac |
---|
| 66 | # |
---|
| 67 | # normal exit |
---|
| 68 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.