/
setup_step02__configure_drupal.sh
64 lines (50 loc) · 3.1 KB
/
setup_step02__configure_drupal.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env bash
# This script performs the initial configuration of Municipes.
# The first parameter is a string and allows you to choose the admin password.
# If you run the script without parameters it will generate a random password.
# Use `drush uli` to get an access token.
echo "-- Installo Municipes --------------------------------------------------"
echo "drush -y site:install comune --locale=it --account-pass=${1}"
drush -y site:install comune --locale=it --account-pass=${1}
# echo "-- Localizzazione in Italiano ------------------------------------------"
# drush -y config:set system.date country.default IT
# drush -y config:set system.date first_day 1
# drush -y config:set system.date timezone.default Europe/Rome
# drush -y config:set core.date_format.long pattern 'l, j F Y - H:i'
# drush -y config:set core.date_format.medium pattern 'D, d/m/Y - H:i'
# drush -y config:set core.date_format.short pattern 'd/m/Y - H:i'
# echo "-- Imposto il numero massimo di caratteri nel sommario -----------------"
# drush -y config:set text.settings default_summary_length 160
# echo "-- Attivo il tema di amministrazione -----------------------------------"
# drush -y theme:enable claro
# drush -y config:set system.theme admin claro
# drush -y config:set node.settings use_admin_theme 1
# drush -y pm:install toolbar admin_toolbar admin_toolbar_tools contextual
# echo "-- Solo gli amministratori possono registrare nuovi utenti -------------"
# drush -y config:set user.settings register admin_only
# echo "-- Installo e configuro i moduli base ----------------------------------"
# drush -y pm:install field pathauto
# drush -y config:set pathauto.settings punctuation.slash 1
# drush -y pm:install big_pipe datetime file field image inline_form_errors \
# media media_library node options responsive_image taxonomy telephone \
# text views block_content
# drush -y pm:install ckeditor5 editor bootstrap_italia_text_editor2
# drush -y pm:install address auto_entitylabel entity_reference_revisions geofield imce \
# field_group focal_point leaflet paragraphs taxonomy_menu
# echo "-- Installo il tema ----------------------------------------------------"
# drush -y pm:enable components
# drush -y pm:enable menu_block
# drush -y theme:enable bootstrap_italia scaenographia
# drush -y config:set system.theme default scaenographia
# drush -y pm:enable bootstrap_italia_empty_front_page
# drush -y pm:enable bootstrap_italia_image_style \
# bootstrap_italia_paragraph bootstrap_italia_paragraph_accordion \
# bootstrap_italia_paragraph_attachments bootstrap_italia_paragraph_callout \
# bootstrap_italia_paragraph_carousel bootstrap_italia_paragraph_citation \
# bootstrap_italia_paragraph_gallery bootstrap_italia_paragraph_hero \
# bootstrap_italia_paragraph_map bootstrap_italia_paragraph_node_reference \
# bootstrap_italia_paragraph_section bootstrap_italia_paragraph_timeline
# drush -y pm:enable bootstrap_italia_views_accordion \
# bootstrap_italia_views_carousel bootstrap_italia_views_gallery \
# bootstrap_italia_views_list bootstrap_italia_views_timeline \
# bi_taxonomy_custom_controller bi_toc twig_tweak bi_calendar