Project

General

Profile

Revision 469b9d6d

Added by Julien Enselme over 10 years ago

Mise à jour settings.php

  • Ajout des templates de settings.php et settings.local.php
  • Ajout de scripts_divers/d7-all-gen-settings-local.sh qui va automatiser le passage de settings.php à settings.php + settings.local.php
  • Ajout de bin/d7-all-update-settings.sh qui permet d'automatiser la mise à jour une fois les templates bons.
  • Modification des autres scripts en fonction.

View differences:

bin/d7-create-site.sh
1 1
#!/bin/sh
2 2

  
3 3
. /users/guest/assos/bin/scripts-config.sh
4
. scripts-config-site.sh $1
5
. scripts-utils.sh
4
. /users/guest/assos/bin/scripts-config-site.sh $1
5
. /users/guest/assos/bin/scripts-utils.sh
6 6

  
7 7
help="# ARGS: site name"
8 8

  
......
58 58
mysql -h $db_server -u $db_user -e "GRANT ALL PRIVILEGES ON $d7_site_name.* TO '$d7_site_name'@'%' IDENTIFIED BY '$site_password'" -p$db_password
59 59

  
60 60
# Create settings.php
61
sed "s/\%\%DBUSER\%\%/$d7_site_name/ ; s/\%\%DBNAME\%\%/$d7_site_name/ ; s/\%\%DBPASS\%\%/$site_password/ ; s/\%\%nomsite\%\%/$d7_site_name/" < $d7_settings_template > $d7_site_settings
61
cp $d7_settings $d7_site_settings
62
generate_settings_local $d7_site_name $site_password $d7_settings_local_template $d7_site_settings_local
62 63

  
63 64
# Create symbolic link
64 65
cd $d7_dir

Also available in: Unified diff