Révision 95df3862
Ajouté par Florent Torregrosa il y a plus de 10 ans
- Fix contrib-usage.sh
- Ignore private files in security review
- Ignore eclipse's files in git
.gitignore | ||
---|---|---|
2 | 2 |
*# |
3 | 3 |
.#* |
4 | 4 |
__* |
5 |
|
|
6 |
# Ignore Eclipse's files. |
|
7 |
/.project |
|
8 |
/.buildpath |
bin/contrib-usage.sh | ||
---|---|---|
22 | 22 |
# Print site_dir if listed. |
23 | 23 |
|
24 | 24 |
cd $dir; |
25 |
if [ 1 -eq `drush pml --no-core --status=$2 | grep $3 | wc -l` ] ; then
|
|
25 |
if [ 1 -le `drush pml --no-core --status=$2 | grep $3 | wc -l` ] ; then
|
|
26 | 26 |
echo $dir; |
27 | 27 |
fi |
28 | 28 |
cd - |
bin/d7-reset-variables.sh | ||
---|---|---|
56 | 56 |
# 3: administrator |
57 | 57 |
drush -y en security_review |
58 | 58 |
drush -y ev "variable_set('security_review_untrusted_roles', array('1'));" |
59 |
# The default method to check settings.php do not work because we include a global and local settings.php |
|
59 | 60 |
drush vset security_review_base_url_method include |
60 | 61 |
# Used to initialise entries in the database schema. |
61 | 62 |
drush security-review --store |
62 |
# Security review can't check for files permissions on multi_assos if launched within the web interface. |
|
63 |
drush -y sqlq --db-prefix "UPDATE {security_review} SET skip = '1', skiptime = $current_timestamp, skipuid = '1' WHERE reviewcheck IN ('file_perms');" |
|
64 |
drush -y sqlq --db-prefix "UPDATE {security_review} SET skip = '0', skiptime = '0', skipuid = NULL WHERE reviewcheck NOT IN ('file_perms');" |
|
63 |
# file_perms : Security Review can't check for files permissions on multi_assos if launched within the web interface. |
|
64 |
# private_files : we have chosen a private path in the files repository and Security Review raise errors but this path is secure. |
|
65 |
drush -y sqlq --db-prefix "UPDATE {security_review} SET skip = '1', skiptime = $current_timestamp, skipuid = '1' WHERE reviewcheck IN ('file_perms', 'private_files');" |
|
66 |
drush -y sqlq --db-prefix "UPDATE {security_review} SET skip = '0', skiptime = '0', skipuid = NULL WHERE reviewcheck NOT IN ('file_perms', 'private_files');" |
Formats disponibles : Unified diff