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/all-reset-permissions.sh
5 5
# This script puts the correct permissions to sites folders, settings.php and scripts.
6 6

  
7 7
######### drupal 7
8
for dir in $(find $d7_dir_sites -type d -maxdepth 1 -mindepth 1 ! -name all) ; do
9
    chmod 755 $dir
10
    chmod 400 $dir/settings.php
11
    chmod 400 $dir/settings.local.php
8
for dir in "$(find "${d7_dir_sites}" -type d -maxdepth 1 -mindepth 1 ! -name all)" ; do
9
    chmod 755 "${dir}"
10
    chmod 400 "${dir}/settings.php"
11
    chmod 400 "${dir}/settings.local.php"
12 12
done
13 13

  
14 14
####### bin
15
chmod -R 700 $dir_scripts
15
chmod -R 700 "${dir_scripts}"
16 16

  
17 17
####### backup
18
chmod -R 700 $dir_backup
18
chmod -R 700 "${dir_backup}"
19 19

  
20 20
####### log
21
chmod -R 700 $dir_log
21
chmod -R 700 "${dir_log}"
22 22

  
23 23
####### private
24
chmod -R 700 $dir_private
24
chmod -R 700 "${dir_private}"

Formats disponibles : Unified diff