forked from jcthomsonjr/wischolar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefault.install.sh
33 lines (24 loc) · 1.37 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
#!/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="openscholar"
# Modify the URL below to match your OpenScholar base domain URL.
BASE_DOMAIN_URL="http://localhost/openscholar/www"
# Modify the login details below to be the desired login details for the Administrator account.
ADMIN_USERNAME="admin"
ADMIN_PASSWORD="admin"
ADMIN_EMAIL="[email protected]"
chmod 777 www/sites/default
rm -rf www/
mkdir www
bash scripts/build
cd www
drush si -y openscholar --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 openscholar_flavor_form.os_profile_flavor=development openscholar_install_type.os_profile_type=vsite
drush vset purl_base_domain $BASE_DOMAIN_URL
# 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 -y os_migrate_demo
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