Projet

Général

Profil

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

root / bin / all-reset-permissions.sh @ a629a580

1
#!/bin/sh
2

    
3
. /home/assos/bin/scripts-config.sh
4

    
5
# This script puts the correct permissions to sites folders, settings.php and scripts.
6

    
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"
12
done
13

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

    
17
####### backup
18
chmod -R u=rwX,go-rwx "${dir_backup}"
19

    
20
####### log
21
chmod -R u=rwX,go-rwx "${dir_log}"
22

    
23
####### private
24
chmod -R u=rwX,go-rwx "${dir_private}"