2016-02-09 06:43:40 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-02-10 02:21:01 +01:00
|
|
|
drupal_mail=dio@ca.ne
|
|
|
|
drupal_password=porcoddio
|
|
|
|
drupal_path=/var/www/d8/
|
|
|
|
|
|
|
|
conf=$(dirname $0)/../config.sh
|
|
|
|
[[ -f "$conf" ]] && . "$conf"
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
if [[ ! -d ${drupal_path} ]]; then
|
|
|
|
mkdir -p "$(dirname ${drupal_path})"
|
|
|
|
cd "$(dirname ${drupal_path})"
|
|
|
|
drush dl drupal --drupal-project-rename=$(basename ${drupal_path})
|
|
|
|
fi
|
|
|
|
cd "${drupal_path}"
|
|
|
|
drush site-install --locale=it \
|
|
|
|
--account-mail ${drupal_mail} \
|
|
|
|
--account-name techbloc-admin \
|
|
|
|
--account-pass ${drupal_password} \
|
|
|
|
standard
|