Projet

Général

Profil

Révision ad6711c7

Ajouté par Julien Enselme il y a plus de 10 ans

Prise en compte sites.php: correction des scripts
cronone: pas compris pourquoi il a changé

Voir les différences:

bin/d7-create-site.sh
25 25
cd $d7_dir
26 26
db_password=`ask_password_db $db_server $db_user`
27 27
site_password=`generate_password`
28
site_line_sites_php="\$sites['assos.centrale-marseille.fr.$d7_site_name'] = 'assos.centrale-marseille.fr.$d7_site_name';"
28 29

  
29 30
# Check if site database already exists.
30 31
if mysql -h $db_server -u $db_user -e "USE $d7_site_name" -p$db_password 2>/dev/null ; then
......
66 67
ln -s . $d7_site_name
67 68

  
68 69
# Update sites.php
69
echo "assos.centrale-marseille.fr.$d7_site_name" >> $sites_php
70
echo $site_line_sites_php >> $sites_php
70 71

  
71 72
# Next Instructions
72 73
echo "Go to http://assos.centrale-marseille.fr/$d7_site_name/install.php to continue."
......
86 87
echo "- Give the webmaster a link to the club Drupal's tutorials "
87 88
echo "- Create a node of type \"Site\" on default"
88 89
echo "- Register the webmaster on webmasters@listes.centrale-marseille.fr"
90
echo -e "- If line to add to sites.php differs from the line below, please correct it\n\t$site_line_sites_php"
bin/d7-delete-site.sh
26 26
# Remove site line from sites.php
27 27
echo '<?php' > $d7_dir_sites/sites.tmp.php
28 28
while read line ; do
29
    if grep -sv "^\$.*forumentreprises';$" $line ; then
29
    if grep -sv "^\$.*$d7_site_name';$" $line ; then
30 30
	echo $line >> sites.tmp.php
31 31
    fi
32 32
done
bin/drushcronone
7 7
  exit 1
8 8
fi
9 9

  
10
cd "$d6_dir_sites/$*"
10
cd "$d6_dir_sites/$1"
11 11
pwd;
12 12
drush -q cron;

Formats disponibles : Unified diff