Projet

Général

Profil

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

root / bin / all-reset-permissions.sh @ 95df3862

1
#!/bin/sh
2

    
3
. /users/guest/assos/bin/scripts-config.sh
4

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

    
7
######### drupal 6
8
for dir in `find $d6_dir_sites -type d -maxdepth 1 -mindepth 1 ! -name all ! -name images ! -name languages` ; do
9
    chmod 755 $dir
10
    chmod 400 $dir/settings.php
11
done
12

    
13
######### drupal 7
14
for dir in `find $d7_dir_sites -type d -maxdepth 1 -mindepth 1 ! -name all` ; do
15
    chmod 755 $dir
16
    chmod 400 $dir/settings.php
17
    chmod 400 $dir/settings.local.php
18
done
19

    
20
####### bin
21
chmod -R 700 $dir_scripts
22

    
23
####### backup
24
chmod -R 700 $dir_backup
25

    
26
####### log
27
chmod -R 700 $dir_log
28

    
29
####### private
30
chmod -R 700 $dir_private