diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-10-27 22:22:14 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-10-27 22:22:14 -0200 |
commit | b0208a9fdde63e7ff1bbf5de69a2d6dcee863cc5 (patch) | |
tree | a2a70d48c8af8a0d714ad4ed0b7301731430c839 /templater | |
parent | fd89cae29180a6a28e6e55b51ce89e70ea3a4984 (diff) | |
download | templater-b0208a9fdde63e7ff1bbf5de69a2d6dcee863cc5.tar.gz templater-b0208a9fdde63e7ff1bbf5de69a2d6dcee863cc5.tar.bz2 |
Drupal 8 config files
Diffstat (limited to 'templater')
-rwxr-xr-x | templater | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -321,9 +321,29 @@ function templater_drupal7 { # Drupal8 implementation function templater_drupal8 { - if [ ! -e 'settings.dev.php' ]; then + if [ ! -e 'settings.php' ]; then __templater_echo "Setting up Drupal 8..." + if [ ! -e ".gitignore" ] || ! grep -q "^settings.php" .gitignore; then + echo settings.php >> .gitignore + echo settings.prod.php >> .gitignore + echo services.yml >> .gitignore + fi + + if [ ! -e "settings.dev.php" ]; then + cp $DIRNAME/share/drupal8/default.settings.php settings.dev.php + cp $DIRNAME/share/drupal8/default.settings.php . + fi + + ln -sf settings.dev.php settings.php + + if [ ! -e "services.yml" ]; then + cp $DIRNAME/share/drupal8/default.services.yml services.dev.yml + cp $DIRNAME/share/drupal8/default.services.yml . + fi + + ln -sf services.dev.yml services.yml + if [ ! -e "Makefile" ]; then cp $DIRNAME/share/drupal8/Makefile . #elif ! grep -q ^drupal: Makefile; then |