-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.install.sh
36 lines (25 loc) · 1.3 KB
/
default.install.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
#!/bin/bash
# Modify the MySQL settings below so they will match your own.
MYSQL_USERNAME="root"
MYSQL_PASSWORD="root"
MYSQL_HOST="localhost"
MYSQL_DB_NAME="drupal7test"
# Modify the URL below to match your OpenScholar base domain URL.
BASE_DOMAIN_URL="http://localhost/drupal7test/www"
# Modify the login details below to be the desired login details for the Administrator account.
ADMIN_USERNAME="admin"
ADMIN_PASSWORD="admin"
ADMIN_EMAIL="admin@example.com"
chmod 777 www/sites/default
rm -rf www/
mkdir www
bash scripts/build
cd www
drush si -y drupal7test --locale=en --account-name=$ADMIN_USERNAME --account-pass=$ADMIN_PASSWORD --account-mail=$ADMIN_EMAIL --db-url=mysql://$MYSQL_USERNAME:$MYSQL_PASSWORD@$MYSQL_HOST/$MYSQL_DB_NAME --uri=$BASE_DOMAIN_URL
# Development modules
drush en devel diff views_ui field_ui migrate_ui -y
# These commands migrates dummy content and is used for development and testing. Comment out both lines if you wish to have a clean OpenScholar installation.
#drush en ethosia_migrate -y
#drush mi --all --user=1
# This command does the login for you when the build script is done. It will open a new tab in your default browser and login to your project as the Administrator. Comment out this line if you do not want the login to happen automatically.
drush uli --uri=$BASE_DOMAIN_URL