Projet

Général

Profil

Révision 8550e097

Ajouté par Julien Enselme il y a plus de 9 ans

Command subsitution are not quoted. Quotes posed problems in loop.

Voir les différences:

bin/d7-all-update-settings.sh
5 5

  
6 6
# This script updates all drupal 7 settings.php according to a new template. Site informations located in settings.local.php are left intact.
7 7

  
8
for settings in "$(find "${d7_dir_sites}" -mindepth 2 -maxdepth 2 -name settings.php)" ; do
8
for settings in $(find "${d7_dir_sites}" -mindepth 2 -maxdepth 2 -name settings.php); do
9 9

  
10 10
    # We go into the settings.php directory.
11
    settings_dir="$(give_dir "${settings}")"
11
    settings_dir=$(give_dir "${settings}")
12 12
    cd "${settings_dir}"
13 13

  
14 14
    chmod 700 "${settings}"

Formats disponibles : Unified diff