Revision 73a967a6
Added by Julien Enselme almost 10 years ago
bin/d7-create-site.sh | ||
---|---|---|
66 | 66 |
touch "${d7_dir_individual_auto_backup}/${dir_site_name}/${current_date}.${dir_site_name}.sql" |
67 | 67 |
touch "${d7_dir_individual_auto_backup}/${dir_site_name}/${current_date}.${dir_site_name}.sql2" |
68 | 68 |
touch "${d7_dir_individual_auto_backup}/${dir_site_name}/${current_date}.${dir_site_name}.sql3" |
69 |
touch "${d7_dir_individual_auto_backup}/${dir_site_name}/${current_date}.${dir_site_name}.sql4}"
|
|
69 |
touch "${d7_dir_individual_auto_backup}/${dir_site_name}/${current_date}.${dir_site_name}.sql4" |
|
70 | 70 |
|
71 | 71 |
# Create and grant privileges on database |
72 | 72 |
mysql --defaults-extra-file="${myassos_cnf}" -e "CREATE DATABASE ${d7_site_name}" |
... | ... | |
98 | 98 |
|
99 | 99 |
### Update nginx_sites_map |
100 | 100 |
d7-generate-nginx-map.sh |
101 |
# Reload nginx |
|
102 |
#sudo service nginx reload |
|
101 | 103 |
|
102 | 104 |
commit "Creation of site: ${d7_site_name}" |
103 | 105 |
|
bin/d7-delete-site.sh | ||
---|---|---|
43 | 43 |
|
44 | 44 |
echo 'Remove site from nginx_map' |
45 | 45 |
d7-generate-nginx-map.sh |
46 |
# Restart nginx |
|
47 |
#sudo service nginx reload |
|
46 | 48 |
|
47 | 49 |
echo "Don't forget to:" |
48 | 50 |
echo "- Refresh node site on default" |
bin/d7-generate-nginx-map.sh | ||
---|---|---|
1 | 1 |
#!/bin/sh |
2 | 2 |
|
3 |
. /home/assos/bin/scripts-config.sh |
|
4 |
|
|
3 | 5 |
help=<<EOF |
4 | 6 |
Generate nginx map from Drupal's sites.php |
5 | 7 |
|
bin/scripts-config.sh | ||
---|---|---|
66 | 66 |
d7_settings_local_template="${dir_template}/${d7_settings_local_template_name}" |
67 | 67 |
|
68 | 68 |
### Nginx |
69 |
$d7_nginx_map_content="${dir_multi_assos}/nginx_map" |
|
69 |
d7_nginx_map_content="${dir_multi_assos}/nginx_map" |
Also available in: Unified diff
Correct the script for nginx.