Projet

Général

Profil

« Précédent | Suivant » 

Révision 9a30dadc

Ajouté par Jérôme Schneider il y a environ 10 ans

reinit-psql.sh: fix no arg check

Voir les différences:

reinit-psql.sh
8 8
    exit 1
9 9
fi
10 10

  
11
if [ $# ]; then
11
if [ $# -gt 0 ]; then
12 12
    if [ "$1" != "new" -a "$1" != "dl" ]; then
13 13
        echo $HELP
14 14
        exit 1
......
18 18
sudo -u postgres dropdb calebasse
19 19
sudo -u postgres createdb calebasse -O $USER
20 20

  
21
if [ $# ]; then
21
if [ $# -gt 0 ]; then
22 22
    if [ $1 = "new" ]; then
23 23
        ssh calebasse.aps42.entrouvert.com ssh prod "/etc/cron.daily/calebasse_dumpdb"
24 24
    fi

Formats disponibles : Unified diff