1
|
#!/bin/sh
|
2
|
PATH=/usr/local/bin:/usr/bin:/bin
|
3
|
|
4
|
|
5
|
##############
|
6
|
# nlehuby - 20 mai 2012
|
7
|
# ce script permet d'initialiser un certain nombre de variables et configurations.
|
8
|
# Plus d'info : http://ginfo.centrale-marseille.fr/wiki/index.php?title=Utilisation_de_Drupal_multi-site#M.C3.A9thode_Drupal_7
|
9
|
##############
|
10
|
|
11
|
####### General variables
|
12
|
drush -y vset --always-set reverse_proxy TRUE
|
13
|
drush -y vset --always-set --format=json reverse_proxy_addresses '["147.94.19.16","147.94.19.17"]'
|
14
|
drush -y ev "variable_set('update_notify_emails', array('assos@centrale-marseille.fr'));"
|
15
|
drush vset error_level 0
|
16
|
|
17
|
|
18
|
####### Piwik
|
19
|
#On active piwik l’outil de statistique
|
20
|
drush -y vset piwik_site_id "101"
|
21
|
drush -y vset piwik_url_http "http://piwik.centrale-marseille.fr/"
|
22
|
drush -y vset piwik_url_https "https://piwik.centrale-marseille.fr/"
|
23
|
# active le cache local du javascript
|
24
|
drush -y vset piwik_cache 1
|
25
|
drush -y vset piwik_visibility_roles "1"
|
26
|
# active les stats pour anonymous et authentifié
|
27
|
drush -y vset --format=json piwik_roles '{"1":0,"2":0}'
|
28
|
drush -y vset piwik_page_title_hierarchy 1
|
29
|
# si la recherche locale est activée
|
30
|
drush -y vset piwik_site_search 1
|
31
|
# on active le module
|
32
|
drush -y en piwik
|