-
Notifications
You must be signed in to change notification settings - Fork 0
/
configdev.sh
executable file
·46 lines (37 loc) · 983 Bytes
/
configdev.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
#!/bin/bash
# This script will add standard configurations after the site has been installed.
sitename=$1
drupalversion=$2
if [[ -n "$drupalversion" ]]; then
echo "Using Drupal: $drupalversion"
else
drupalversion=7
echo "Using Drupal: $drupalversion"
fi
if [[ -n "$sitename" ]]; then
echo "Using $sitename"
else
sitename='jsa.dev'
echo "Using $sitename"
fi
sitealias='@local.'${sitename}
drush $sitealias en devel -y
drush $sitealias en coder -y
drush $sitealias en context_list_active -y
drush $sitealias en environment_indicator -y
drush $sitealias vset stanford_sites_allow_features_generate TRUE
drush $sitealias upwd admin --password=admin
echo Clearing cache ${sitealias}
if test $drupalversion = 7; then
drush $sitealias cc all
elif test $drupalversion = 8; then
drush $sitealias cache rebuild
fi
chmod 777 /Users/cjwest/.drush/cache/default
drush $sitealias uli
# Dinnertime!
echo 'Stop time: '
date
#echo -e "\a"
#echo -e "\a"
#echo -e "\a"