Revision f92204ef
Added by Julien Enselme almost 10 years ago
bin/d7-create-site.sh | ||
---|---|---|
54 | 54 |
|
55 | 55 |
|
56 | 56 |
###### Main |
57 |
mkdir $d7_site_dir |
|
58 |
dir_site_name="assos.centrale-marseille.fr.$d7_site_name" |
|
59 |
|
|
57 | 60 |
# Backup requirements |
58 | 61 |
mkdir $d7_dir_individual_auto_backup/$dir_site_name |
59 | 62 |
mkdir $d7_dir_individual_manual_backup/$dir_site_name |
... | ... | |
69 | 72 |
mysql --defaults-extra-file=$myassos_cnf -e "CREATE DATABASE $d7_site_name" |
70 | 73 |
mysql --defaults-extra-file=$myassos_cnf -e "GRANT ALL PRIVILEGES ON $d7_site_name.* TO '$d7_site_name'@'%' IDENTIFIED BY '$site_password'" |
71 | 74 |
|
72 |
mkdir $d7_site_dir |
|
73 |
dir_site_name="assos.centrale-marseille.fr.$d7_site_name" |
|
74 |
|
|
75 | 75 |
# Create settings.local.php |
76 | 76 |
cp $d7_settings $d7_site_settings |
77 | 77 |
generate_settings_local $d7_site_name $site_password $d7_settings_local_template $d7_site_settings_local |
Also available in: Unified diff
must be defined before we create the dummy sql file. Otherwise, the individual db dumps failed.