Replace init command with drupal-install
This commit is contained in:
parent
3124769b97
commit
698ff45595
24
.docksal/commands/drupal-install
Executable file
24
.docksal/commands/drupal-install
Executable file
|
@ -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
|
|
@ -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
|
|
Reference in a new issue