Projet

Général

Profil

Révision d4c4525a

Ajouté par Julien Enselme il y a environ 9 ans

Use drush aliases to loop on all sites instead of sites.

Close #535

Voir les différences:

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

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

Formats disponibles : Unified diff