From ad69a764d817654b6f3d7144eaa8d71877799a71 Mon Sep 17 00:00:00 2001 From: boyska Date: Tue, 9 Feb 2016 20:21:01 -0500 Subject: [PATCH] some sort of deploy, not really working some mysql stuff is still needed --- deploy/deploy.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) mode change 100644 => 100755 deploy/deploy.sh diff --git a/deploy/deploy.sh b/deploy/deploy.sh old mode 100644 new mode 100755 index af5eccf..4c7d2f8 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -1,3 +1,22 @@ #!/bin/bash -# TODO: drush faituttecose +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