Projet

Général

Profil

Paste
Télécharger (520 octets) Statistiques
| Branche: | Révision:

root / bin / all-reset-permissions.sh @ 5a4b9049

1 d52a5b2f jenselme
#!/bin/sh
2
3 06e9d071 Assos Assos
. /home/assos/bin/scripts-config.sh
4 d52a5b2f jenselme
5
# This script puts the correct permissions to sites folders, settings.php and scripts.
6
7
######### drupal 7
8 8550e097 Julien Enselme
for dir in $(find "${d7_dir_sites}" -type d -maxdepth 1 -mindepth 1 ! -name all); do
9 3e9236bd Julien Enselme
    chmod 755 "${dir}"
10
    chmod 400 "${dir}/settings.php"
11
    chmod 400 "${dir}/settings.local.php"
12 d52a5b2f jenselme
done
13
14
####### bin
15 3e9236bd Julien Enselme
chmod -R 700 "${dir_scripts}"
16 d52a5b2f jenselme
17
####### backup
18 3e9236bd Julien Enselme
chmod -R 700 "${dir_backup}"
19 d52a5b2f jenselme
20
####### log
21 3e9236bd Julien Enselme
chmod -R 700 "${dir_log}"
22 5163fcf2 Julien Enselme
23
####### private
24 3e9236bd Julien Enselme
chmod -R 700 "${dir_private}"