Révision 6c6343d9
Ajouté par Julien Enselme il y a environ 9 ans
bin/d7-all-reset-variables.sh | ||
---|---|---|
1 | 1 |
#!/bin/sh |
2 | 2 |
|
3 | 3 |
. /home/assos/bin/scripts-config.sh |
4 |
. /home/assos/bin/scripts-utils.sh |
|
4 | 5 |
|
5 | 6 |
for dir in $(find "${d7_dir_sites}" -maxdepth 1 -mindepth 1 -type d ! -name all | sort); do |
6 | 7 |
echo "${dir}" |
7 |
site_name=$(echo "${dir}" | tr '.' '\n' | tail -n 1)
|
|
8 |
site_name=$(get_site_name_from_dir_name "${dir}")
|
|
8 | 9 |
d7-reset-variables.sh "${site_name}" |
9 | 10 |
done |
Formats disponibles : Unified diff
Improve the detection of default with the path of a site.
Use a utilitary function to extract the exact site name from a site path.
Close #572