Projet

Général

Profil

Paste
Télécharger (641 octets) Statistiques
| Branche: | Révision:

root / bin / d7-all-drush-logged.sh @ 60103d5a

1
#!/bin/sh
2

    
3
. /users/guest/assos/bin/scripts-config.sh
4
. scripts-utils.sh
5

    
6
help="# ARGS: drush_command"
7

    
8
check_arguments $# 1 "$help"
9

    
10
cd $d7_dir_sites
11

    
12
for dir in `find . -maxdepth 1 -mindepth 1 -type d ! -name all | sort` ; do
13
    cd $dir
14
    current_date=`date "+%Y-%m-%d_%Hh:%Mm"`
15
    echo "======$current_date======" >> $d7_dir_log/$dir.log
16
    echo "Arguments are: $* " >> $d7_dir_log/$dir.log
17
    drush $* >> $d7_dir_log/$dir.log
18
    #To have the same caracters limit we needed 'end' that have 4 caracters, we used the Croate language for this ! LOL
19
    echo -e "=============KRAJ=============\n" >> $d7_dir_log/$dir.log
20
    cd -
21
done