From 698ff455958b94aa0d2705dec2448a9e653e3466 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 16 Jul 2019 01:41:43 +0100 Subject: [PATCH] Replace init command with drupal-install --- .docksal/commands/drupal-install | 24 ++++++++++++++++++++++++ .docksal/commands/init | 13 ------------- 2 files changed, 24 insertions(+), 13 deletions(-) create mode 100755 .docksal/commands/drupal-install delete mode 100755 .docksal/commands/init diff --git a/.docksal/commands/drupal-install b/.docksal/commands/drupal-install new file mode 100755 index 0000000..f82b80a --- /dev/null +++ b/.docksal/commands/drupal-install @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +#: exec_target = cli + +set -e + +function install_site() { + drush site-install -y \ + --account-pass=admin123 \ + --site-name='Drupal Tailwind CSS' +} + +function change_theme() { + drush theme:enable tailwindcss -y + drush config-set system.theme default tailwindcss -y +} + +function login_link() { + drush uli -l http://drupal-tailwind.docksal +} + +install_site +change_theme +login_link diff --git a/.docksal/commands/init b/.docksal/commands/init deleted file mode 100755 index cd15734..0000000 --- a/.docksal/commands/init +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -fin start - -fin drush site-install -y \ - --account-pass=admin \ - --site-name='Drupal Tailwind CSS' - -# Change the default theme -fin drush theme:enable tailwindcss -y -fin drush config-set system.theme default tailwindcss -y - -fin drush uli -l http://drupal-tailwind.docksal