Révision bf546089
Ajouté par Julien Enselme il y a plus de 9 ans
bin/scripts-utils.sh | ||
---|---|---|
115 | 115 |
fi |
116 | 116 |
return 1 |
117 | 117 |
} |
118 |
|
|
119 |
update_nginx_map() { |
|
120 |
nginx_map_template='map $uri $subsite {\n |
|
121 |
~^/(?P<sub>%%PATTERN%%) $sub;\n |
|
122 |
}\n' |
|
123 |
new_nginx_map_pattern=$(cat $nginx_site_names | tr "\n" "|" | head -c -1) |
|
124 |
new_nginx_sites_map=${nginx_map_template/"%%PATTERN%%"/$new_nginx_map_pattern} |
|
125 |
|
|
126 |
echo -e $new_nginx_sites_map > $nginx_sites_map |
|
127 |
} |
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.