1 |
d52a5b2f
|
jenselme
|
#!/bin/sh
|
2 |
|
|
|
3 |
06e9d071
|
Assos Assos
|
. /home/assos/bin/scripts-config.sh
|
4 |
d4c4525a
|
Julien Enselme
|
. /home/assos/bin/scripts-utils.sh
|
5 |
d52a5b2f
|
jenselme
|
|
6 |
|
|
# This script puts the correct permissions to sites folders, settings.php and scripts.
|
7 |
|
|
|
8 |
|
|
######### drupal 7
|
9 |
d4c4525a
|
Julien Enselme
|
for site in $(sites_list); do
|
10 |
|
|
dir=$(get_absolute_site_dir_from_name "${site}")
|
11 |
3e9236bd
|
Julien Enselme
|
chmod 755 "${dir}"
|
12 |
|
|
chmod 400 "${dir}/settings.php"
|
13 |
|
|
chmod 400 "${dir}/settings.local.php"
|
14 |
d52a5b2f
|
jenselme
|
done
|
15 |
|
|
|
16 |
|
|
####### bin
|
17 |
3e9236bd
|
Julien Enselme
|
chmod -R 700 "${dir_scripts}"
|
18 |
d52a5b2f
|
jenselme
|
|
19 |
|
|
####### backup
|
20 |
35e0bbf4
|
Julien Enselme
|
chmod -R u=rwX,go-rwx "${dir_backup}"
|
21 |
d52a5b2f
|
jenselme
|
|
22 |
|
|
####### log
|
23 |
35e0bbf4
|
Julien Enselme
|
chmod -R u=rwX,go-rwx "${dir_log}"
|
24 |
5163fcf2
|
Julien Enselme
|
|
25 |
|
|
####### private
|
26 |
35e0bbf4
|
Julien Enselme
|
chmod -R u=rwX,go-rwx "${dir_private}" |