Révision ad6711c7
Ajouté par Julien Enselme il y a plus de 10 ans
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" |
Formats disponibles : Unified diff
Prise en compte sites.php: correction des scripts
cronone: pas compris pourquoi il a changé