-
Notifications
You must be signed in to change notification settings - Fork 0
/
post-import.sh
36 lines (29 loc) · 961 Bytes
/
post-import.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
# Install drush using Composer and give feedback
#echo "Installing Drush using Composer..."
#ddev composer require drush/drush
#echo "Drush installed."
# Disable the fullcalendar_view module and give feedback
#echo "Disabling Fullcalendar View module..."
#ddev drush pmu fullcalendar_view
#echo "Full Calendar View module disabled."
# Disable the Honeypot module and give feedback
#echo "Disabling Honeypot module..."
#ddev drush pmu honeypot
#echo "Honeypot module disabled."
# Disable the LDAP module and give feedback
#echo "Disabling LDAP module..."
#ddev drush pmu ldap
#echo "LDAP module disabled."
# Sanitize the database
ddev drush sql-sanitize -y
echo "Database sanitized"
# Clear Drupal's cache and give feedback
echo "Clearing Drupal's cache..."
ddev drush cr
echo "Drupal's cache cleared."
# Launch the site and give feedback
echo "Launching the site..."
ddev launch
echo "Site launched."
# Print the end time
echo "Script ended at: $(date)"