Project

General

Profile

Paste
Download (580 Bytes) Statistics
| Branch: | Revision:

root / bin / all-reset-permissions.sh @ 2b468206

1
#!/bin/sh
2

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

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

    
8
######### drupal 7
9
for site in $(sites_list); do
10
    dir=$(get_absolute_site_dir_from_name "${site}")
11
    chmod 755 "${dir}"
12
    chmod 400 "${dir}/settings.php"
13
    chmod 400 "${dir}/settings.local.php"
14
done
15

    
16
####### bin
17
chmod -R 700 "${dir_scripts}"
18

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

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

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