Projet

Général

Profil

Révision 3e9236bd

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

Update scritp so they respect the new convention.

  • Variables are quoted.
  • $(…) are quoted.

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)
12
    cd $settings_dir
11
    settings_dir="$(give_dir "${settings}")"
12
    cd "${settings_dir}"
13 13

  
14
    chmod 700 $settings
15
    rm $settings
14
    chmod 700 "${settings}"
15
    rm "${settings}"
16 16

  
17
    cp $d7_settings settings.php
17
    cp "${d7_settings}" settings.php
18 18
    chmod 400 settings.php
19 19
done

Formats disponibles : Unified diff