Révision bf546089
Ajouté par Julien Enselme il y a plus de 9 ans
bin/d7-create-site.sh | ||
---|---|---|
96 | 96 |
sed s/"'site-list' => array("/"'site-list' => array(%'assos.centrale-marseille.fr\/$d7_site_name',"/ < "${aliases_drushrc_php}" | tr '%' '\n ' > "${dir_tmp}/aliases.tmp" |
97 | 97 |
mv "${dir_tmp}/aliases.tmp" "${aliases_drushrc_php}" |
98 | 98 |
|
99 |
### Update nginx_sites_map |
|
100 |
echo $d7_site_name >> $nginx_site_names |
|
101 |
# The sort must be reversed so that nginx aplly the rules correctly. |
|
102 |
cat $nginx_site_names | sort -r > $nginx_site_names |
|
103 |
update_nginx_map |
|
104 |
|
|
99 | 105 |
commit "Creation of site: ${d7_site_name}" |
100 | 106 |
|
101 | 107 |
# Next Instructions |
Formats disponibles : Unified diff
Adapt script for nginx as described in #394. The location of nginx files are still to be defined.
Variables nginx_site_names and nginx_sites_map are still empty.