Projet

Général

Profil

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

root / bin / chk_perm @ a886a6aa

1
#!/bin/sh
2

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

    
5
######### drupal 6
6
cd /users/guest/assos/html/sites
7

    
8
for dir in $(find . -type d -maxdepth 1 ! -name all ! -name images ! -name languages)
9
do
10
    chmod 755 $dir
11
    cd $dir
12
    chmod 400 settings.php
13
    cd -
14
done
15

    
16
######### drupal 7
17
cd /users/guest/assos/htmltest/sites
18

    
19
for dir in $(find . -type d -maxdepth 1 ! -name all)
20
do
21
    chmod 755 $dir
22
    cd $dir
23
    chmod 400 settings.php
24
    cd -
25
done
26

    
27
####### bin
28
chmod -R 700 /users/guest/assos/bin