-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sh_SKEL
68 lines (64 loc) · 2.28 KB
/
config.sh_SKEL
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
64
65
66
67
68
#Set of new config variables
#This should be the only editable part
# REMEMBER TO SET THESE IN DRUPAL ON CHANGES
# To set settings do this in ./public_html
# drush vget subsite
# Expeted resutl
# bc_subsites_domain_suffix: .subsites.xxx.dk
# bc_subsites_script_dir: /var/www/subsites.xxx.dk/scripts/
#
# To set a variable do:
# drush vset bc_subsites_domain_suffix .subsites.xxx.dk
# OS2SUBSITE common varaibles.
## Flag for using environment variables
## Comment this variale to use values from `config.sh file`
USE_ENV_CONFIG=1
## Drupal project root directory
BASEDIR="/var/www/subsites.xxx.dk"
## Absolute path of the base subsite
BASE_SUBSITE_DIR="/var/www/subsites/web/sites/base.subsites"
SERVERIP="[SERVER_IP]"
## Default Drupal profile for subsites.
## Use `base_config` value
PROFILE="os2sub"
# List of allowed installation profiles.
ALLOWED_INSTALL_PROFILES=minimal,base_config
## Email used for subsite admin user.
EMAIL="[email protected]"
## Path to subsite scripts
SCRIPTDIR="$(dirname "$0")"
## Database creadentials for creating subsite db.
DRUSH=$(which drush)
DBHOST=localhost
### Optional varialbles. Leave it empty to user root as user name.
#DB_ROOT_USER=root
### Optional varialbles. Leave it empty to user root user without password from localhost.
#DB_ROOT_PASSWORD=root
## External db provisioning
#EXTERNAL_DB_PROVISIONING=1
## For internal db provisioning you have to specify directory to mysql db files are stored. It's used for db existing check.
#DBDIR=/var/lib/mysql
## Subsite admin pass
ADMINPASS=$(cat "$SCRIPTDIR/.admin_password.txt")
## Path to subsite vhost template
VHOSTTEMPLATE="$SCRIPTDIR/vhost-template.txt"
## Drupal document root directory path
MULTISITE="$BASEDIR/public_html"
## Path to file where subsites registering.
SITESFILE="$MULTISITE/sites/sites.php"
## Temp directory for subsites
TMPDIRBASE="$BASEDIR/tmp"
## Log directory for subsites
LOGDIRBASE="$BASEDIR/logs"
## Session directory for subsites
SESSIONDIRBASE="$BASEDIR/sessions"
## Username for subsite administrator user. User will be created on subsites.
SITEADMIN=subsiteadmin
## Apache webserver username.
APACHEUSER=www-data
## Root user name. Sometimes this variable is empty.
USER=root
# Version of Drupal core. Accepted values 7,8
DRUPAL=[7,8]
# Additional option for site-install command
INSTALL_OPTIONS=""