aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-09 13:14:41 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-09 13:14:41 -0200
commit3ef280d1de0580d154336249fbc745bf4dfc4bce (patch)
treeb495ba8aa3ecfc503847b684537bc7c4491f7367 /share
parentab27e3c1fb711c7046af981789848e06eeb93006 (diff)
downloadtemplater-3ef280d1de0580d154336249fbc745bf4dfc4bce.tar.gz
templater-3ef280d1de0580d154336249fbc745bf4dfc4bce.tar.bz2
Drupal 8: Makefile: use relative paths at settings target
Diffstat (limited to 'share')
-rw-r--r--share/templater/drupal8/files/Makefile23
1 files changed, 15 insertions, 8 deletions
diff --git a/share/templater/drupal8/files/Makefile b/share/templater/drupal8/files/Makefile
index 58ce6c4..4f750c9 100644
--- a/share/templater/drupal8/files/Makefile
+++ b/share/templater/drupal8/files/Makefile
@@ -73,14 +73,21 @@ default_settings:
# Setup drupal settings
settings: default_settings
- test -s $(DRUPAL)/sites/sites.php || cp sites.php $(DRUPAL)/sites/sites.php
- mkdir -p $(DRUPAL)/sites/$(PROJECT)
- test -s $(DRUPAL)/sites/$(PROJECT)/settings.$(ENV).php || cp settings.dev.php $(DRUPAL)/sites/$(PROJECT)/settings.$(ENV).php
- test -s $(DRUPAL)/sites/$(PROJECT)/settings.php || ln -s settings.$(ENV).php $(DRUPAL)/sites/$(PROJECT)/settings.php
- test -s $(DRUPAL)/sites/$(PROJECT)/services.$(ENV).yml || cp services.dev.yml $(DRUPAL)/sites/$(PROJECT)/services.$(ENV).yml
- test -s $(DRUPAL)/sites/$(PROJECT)/services.yml || ln -s services.$(ENV).yml $(DRUPAL)/sites/$(PROJECT)/services.yml
- chmod 640 $(DRUPAL)/sites/$(PROJECT)/settings.php
- chmod 640 $(DRUPAL)/sites/$(PROJECT)/services.yml
+ #test -s $(DRUPAL)/sites/sites.php || cp sites.php $(DRUPAL)/sites/sites.php
+ #mkdir -p $(DRUPAL)/sites/$(PROJECT)
+ #test -s $(DRUPAL)/sites/$(PROJECT)/settings.$(ENV).php || cp settings.dev.php $(DRUPAL)/sites/$(PROJECT)/settings.$(ENV).php
+ #test -s $(DRUPAL)/sites/$(PROJECT)/settings.php || ln -s settings.$(ENV).php $(DRUPAL)/sites/$(PROJECT)/settings.php
+ #test -s $(DRUPAL)/sites/$(PROJECT)/services.$(ENV).yml || cp services.dev.yml $(DRUPAL)/sites/$(PROJECT)/services.$(ENV).yml
+ #test -s $(DRUPAL)/sites/$(PROJECT)/services.yml || ln -s services.$(ENV).yml $(DRUPAL)/sites/$(PROJECT)/services.yml
+ #chmod 640 $(DRUPAL)/sites/$(PROJECT)/settings.php
+ #chmod 640 $(DRUPAL)/sites/$(PROJECT)/services.yml
+ test -s $(DRUPAL)/sites/sites.php || sudo cp sites.php $(DRUPAL)/sites/sites.php
+ test -s settings.$(ENV).php || cp settings.dev.php settings.$(ENV).php
+ test -s settings.php || ln -s settings.$(ENV).php settings.php
+ test -s services.$(ENV).yml || cp services.dev.yml services.$(ENV).yml
+ test -s services.yml || ln -s services.$(ENV).yml services.yml
+ chmod 640 settings.php
+ chmod 640 services.yml
# Fix ownership
ownership: